3 # This installs man pages into the doc directory
6 # $(SOURCE) - The documents to use
8 # All output is written to files in the build doc directory
10 # See defaults.mak for information about LOCAL
12 # Some local definitions
13 LOCAL := manpage-$(firstword $(SOURCE))
14 $(LOCAL)-LIST := $(addprefix $(DOC)/,$(SOURCE))
16 # Install generation hooks
18 manpages: $($(LOCAL)-LIST)
19 veryclean: veryclean/$(LOCAL)
23 $($(LOCAL)-LIST) : $(DOC)/% : %
24 echo Installing man page $< to $(@D)
28 .PHONY: veryclean/$(LOCAL)