mirror of
https://github.com/Tha14/toxic.git
synced 2025-12-06 19:06:36 +01:00
Reworked manpage build system
This commit is contained in:
10
cfg/targets/doc.mk
Normal file
10
cfg/targets/doc.mk
Normal file
@@ -0,0 +1,10 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user