]> git.saurik.com Git - apt.git/blob - buildlib/manpage.mak
- separate manpages from the rest of the doc building
[apt.git] / buildlib / manpage.mak
1 # -*- make -*-
2
3 # This installs man pages into the doc directory
4
5 # Input
6 # $(SOURCE) - The documents to use
7
8 # All output is written to files in the build doc directory
9
10 # See defaults.mak for information about LOCAL
11
12 # Some local definitions
13 LOCAL := manpage-$(firstword $(SOURCE))
14 $(LOCAL)-LIST := $(addprefix $(DOC)/,$(SOURCE))
15
16 # Install generation hooks
17 doc: manpages
18 manpages: $($(LOCAL)-LIST)
19 veryclean: veryclean/$(LOCAL)
20
21 MKDIRS += $(DOC)
22
23 $($(LOCAL)-LIST) : $(DOC)/% : %
24 echo Installing man page $< to $(@D)
25 cp $< $(@D)
26
27 # Clean rule
28 .PHONY: veryclean/$(LOCAL)
29 veryclean/$(LOCAL):
30 -rm -rf $($(@F)-LIST)