Makefile: add README.pdf target
authorBrian Norris <banorris@uci.edu>
Wed, 14 Aug 2013 06:24:13 +0000 (23:24 -0700)
committerBrian Norris <banorris@uci.edu>
Wed, 14 Aug 2013 06:24:13 +0000 (23:24 -0700)
Using pandoc:

  http://johnmacfarlane.net/pandoc/

Makefile

index b7fd60b..37bdcd1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -79,3 +79,7 @@ PHONY += pdfs
 pdfs: $(patsubst %.dot,%.pdf,$(wildcard *.dot))
 
 .PHONY: $(PHONY)
+
+# A 1-inch margin PDF generated by 'pandoc'
+%.pdf: %.md
+       pandoc -o $@ $< -V header-includes='\usepackage[margin=1in]{geometry}'