about summary refs log tree commit diff stats
path: root/doc/Makefile
diff options
context:
space:
mode:
authorDarren Bane <dbane@tilde.institute>2020-05-20 23:10:28 +0100
committerDarren Bane <dbane@tilde.institute>2020-05-20 23:10:28 +0100
commit01c8c655f67f820bc8028d369c5061c997921e72 (patch)
tree2b42b5838aa05ecbf2223abec31ba6a4d977dd70 /doc/Makefile
parent020601c63c8878f82a06d597ae80de94295ef73d (diff)
downloadlsp-01c8c655f67f820bc8028d369c5061c997921e72.tar.gz
Blog post generator
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
new file mode 100644
index 0000000..fa8d38d
--- /dev/null
+++ b/doc/Makefile
@@ -0,0 +1,19 @@
+.POSIX:
+.DELETE_ON_ERROR:
+
+.PHONY: all
+all: breaking_rules.pdf breaking_rules.html
+
+# Stick with gfm for as long as possible.
+# Use stuff beyond that only where absolutely necessary.
+# Similar to code, YAGNI.
+
+breaking_rules.pdf: breaking_rules.md refs
+	lowdown -sTms breaking_rules.md | pdfroff -i -t -R -mspdf -k -Kutf8 > $@
+
+breaking_rules.html: breaking_rules.md refs
+	lowdown -sTms breaking_rules.md | groff -Thtml -i -t -R -ms -k -Kutf8 > $@
+
+.PHONY: clean
+clean:
+	$(RM) breaking_rules.pdf