summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorGavin Thomas Claugus <gclaugus@gmail.com>2016-07-03 13:27:11 -0400
committerGavin Thomas Claugus <gclaugus@gmail.com>2016-07-03 13:27:11 -0400
commit2760e30d6c703f8e524bc05e398cc83be836ac90 (patch)
treefcf13de9b4b7f0a75f074d49a37496b1ad421618 /doc
parent9c6a9b5eed7adc626b806ab123a2bfc6d64d491a (diff)
Define tasks for manpage generation
Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 41100898..7f52f29c 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -124,6 +124,11 @@ $(OUT_PDF): $(OUT)
@$(ECHO) "\t[MKDIR ] $@"
@$(MKDIR) $(OUT_PDF)
+# create man out directory
+$(OUT_MAN): $(OUT)
+ @$(ECHO) "\t[MKDIR ] $@"
+ @$(MKDIR) $(OUT_MAN)
+
# cleanup task
clean:
@$(ECHO) "\t[RM ] $@"
@@ -145,5 +150,12 @@ $(TARGET_HTML): $(OUT_HTML)
--template $(TEMPLATES)/default.html5 \
$(SRC) -o $@
+man: $(TARGET_MAN)
+
+$(TARGET_MAN): $(OUT_MAN)
+ @$(ECHO) "\t[PANDOC] man"
+ @$(PANDOC_CC_MAN) \
+ $(SRC) -o $@
+
.PHONY: $(TARGET_PDF) $(TARGET_HTML)