Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
50 lines (34 sloc) 939 Bytes
# depth is defined in subdirectories as .., ../.. and so on.
# perl -lanE'print qq($F[0]\tkeywords\t$.) ' keywords > tags
depth?=.
include site.mk
feed= news.html atom.xml unixtips.html unixtips.atom.xml
all: $(basics) $(webpages) theme.css
(cd sympa && make)
website: FORCE $(webpages)
fix:
perl bin/atom5 atom > atom2.xml
val: xmlstarlet val -e -s atom.xsd atom2.xml
FORCE:
# cd posts/2017; make
perl bin/atom5 atom > atom.xml
perl bin/atom5 news > news.md
menu: menu.md.
m4 -I$(depth)/m4 post defs render $< | pandoc -t html5 -o $@
clean:
rm -f menu $(webpages)
%.css: %.styl
stylus -c $<
r.html: test_defs.zsh
zsh test_defs.zsh > r.tap
tapprouve r.tap > r.html
$(keywords_m4): $(depth)/keywords
perl bin/m4keys $< > $@
.md.html: $(basics)
$(htmlify) < $< > $@
snitch:
@echo mdpages: $(mdpages)
@echo webpages: $(webpages)
test:
for t (t/*zsh) {zsh $$t > $${t%zsh}tap}
tapprouve t/*tap > t/report.html