1
0
mirror of https://github.com/Tha14/toxic.git synced 2024-11-15 09:23:02 +01:00
toxic/cfg/targets/doc.mk
2014-08-26 10:39:43 +02:00

11 lines
301 B
Makefile

# Doc target
doc: $(MANFILES:%=$(DOC_DIR)/%)
$(DOC_DIR)/%: $(DOC_DIR)/%.asc
@echo " MAN $(@F)"
@a2x -f manpage -a revdate=$(shell git log -1 --date=short --format="%ad" $<) \
-a manmanual="Toxic Manual" -a mansource=toxic \
-a manversion=__VERSION__ -a datadir=__DATADIR__ $<
.PHONY: doc