summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-08-13 12:31:19 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2014-08-13 12:31:19 -0700
commita0e795fc40601d29dac48f7faac4507712ace601 (patch)
tree404abc7a1f7367efe70fe96aad52a10833cba60b /Makefile
parent76d14bcc11c655996c0a85eb5d5ce2dbca39fe17 (diff)
Added Makefile to rebuild man pages.
This should only be needed by developers.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 15 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 000000000..99588c157
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+makemanpages=$(shell find dist -type f -name make-pandoc-man-pages | head -1)
+MANPAGES=man/man1/pandoc.1 man/man5/pandoc_markdown.5
+
+all: ${MANPAGES}
+
+%.1: %.1.template
+ ${makemanpages}
+
+%.5: %.5.template
+ ${makemanpages}
+
+clean:
+ -rm ${MANPAGES}
+
+.PHONY: all clean