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