]> git.saurik.com Git - apt.git/blame_incremental - buildlib/manpage.mak
commit debian/changelog for final 0.7.25.2 upload
[apt.git] / buildlib / manpage.mak
... / ...
CommitLineData
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
13LOCAL := manpage-$(firstword $(SOURCE))
14$(LOCAL)-LIST := $(addprefix $(DOC)/,$(SOURCE))
15
16# Install generation hooks
17doc: $($(LOCAL)-LIST)
18veryclean: veryclean/$(LOCAL)
19
20MKDIRS += $(DOC)
21
22$($(LOCAL)-LIST) : $(DOC)/% : %
23 echo Installing man page $< to $(@D)
24 cp $< $(@D)
25
26# Clean rule
27.PHONY: veryclean/$(LOCAL)
28veryclean/$(LOCAL):
29 -rm -rf $($(@F)-LIST)