summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cd287a4..fe8af54 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,8 @@
all: muck1.pdf muck2.pdf muck3.pdf jt1.pdf jt2.pdf saga.pdf
%.pdf: %.yarn
- pandoc -o $@ $< \
+ sed "s/%VERSION%/$$(./docid "$<")/" "$<" > tmp
+ pandoc -o $@ tmp \
--number-sections \
--toc \
--top-level-division=chapter \
@@ -13,3 +14,4 @@ all: muck1.pdf muck2.pdf muck3.pdf jt1.pdf jt2.pdf saga.pdf
-Vsansfont:FreeSans \
-Vmonofont:FreeMonoBold \
-Vgeometry:top=2cm,bottom=2.5cm,left=2cm,right=1cm
+# rm -f tmp