about summary refs log tree commit diff stats
path: root/doc/Makefile
diff options
context:
space:
mode:
authorDarren Bane <darren.bane@gmail.com>2020-05-20 23:41:17 +0100
committerDarren Bane <darren.bane@gmail.com>2020-05-20 23:41:40 +0100
commit07a11fbd4b69a02534ab0bd0f907fbc9f6ea5995 (patch)
tree046354e001ab9dad334a50733073a671399333f4 /doc/Makefile
parent01c8c655f67f820bc8028d369c5061c997921e72 (diff)
downloadlsp-07a11fbd4b69a02534ab0bd0f907fbc9f6ea5995.tar.gz
Slightly nicer *roff
Diffstat (limited to 'doc/Makefile')
-rw-r--r--doc/Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/Makefile b/doc/Makefile
index fa8d38d..17b7b7c 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -8,11 +8,12 @@ all: breaking_rules.pdf breaking_rules.html
 # 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.pdf: macros.ms breaking_rules.md refs
+	( cat macros.ms; 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 > $@
+# Headers aren't emitted currently
+breaking_rules.html: macros.ms breaking_rules.md refs
+	( cat macros.ms; lowdown -sTms breaking_rules.md ) | groff -Thtml -i -t -R -ms -k -Kutf8 > $@
 
 .PHONY: clean
 clean: