Define tasks for manpage generation

Signed-off-by: Gavin Thomas Claugus <gclaugus@gmail.com>
This commit is contained in:
Gavin Thomas Claugus 2016-07-03 13:27:11 -04:00
parent 9c6a9b5eed
commit 2760e30d6c

View file

@ -124,6 +124,11 @@ $(OUT_PDF): $(OUT)
@$(ECHO) "\t[MKDIR ] $@" @$(ECHO) "\t[MKDIR ] $@"
@$(MKDIR) $(OUT_PDF) @$(MKDIR) $(OUT_PDF)
# create man out directory
$(OUT_MAN): $(OUT)
@$(ECHO) "\t[MKDIR ] $@"
@$(MKDIR) $(OUT_MAN)
# cleanup task # cleanup task
clean: clean:
@$(ECHO) "\t[RM ] $@" @$(ECHO) "\t[RM ] $@"
@ -145,5 +150,12 @@ $(TARGET_HTML): $(OUT_HTML)
--template $(TEMPLATES)/default.html5 \ --template $(TEMPLATES)/default.html5 \
$(SRC) -o $@ $(SRC) -o $@
man: $(TARGET_MAN)
$(TARGET_MAN): $(OUT_MAN)
@$(ECHO) "\t[PANDOC] man"
@$(PANDOC_CC_MAN) \
$(SRC) -o $@
.PHONY: $(TARGET_PDF) $(TARGET_HTML) .PHONY: $(TARGET_PDF) $(TARGET_HTML)