summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 36 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..d0dbf96
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,36 @@
+# depth is defined in subdirectories as .., ../.. and so on.
+depth?=.
+include site.mk
+feed= news.html atom.xml unixtips.html unixtips.atom.xml
+
+all: $(basics) $(webpages) theme.css
+
+website: FORCE $(webpages)
+
+FORCE:
+ perl6 bin/atom atom > atom.xml
+ perl6 bin/atom news > news.md
+ cd posts/2015; make
+
+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)