]> git.decadent.org.uk Git - dak.git/blob - tools/dsync-0.0/buildlib/manpage.mak
debianqueued: open ftp connection when trying to upload .dak-commands
[dak.git] / tools / dsync-0.0 / 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 writtin 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: $($(LOCAL)-LIST)
18 veryclean: veryclean/$(LOCAL)
19
20 $($(LOCAL)-LIST) : $(DOC)/% : %
21         echo Installing man page $< to $(@D)
22         cp $< $(@D)
23
24 # Clean rule
25 .PHONY: veryclean/$(LOCAL)
26 veryclean/$(LOCAL):
27         -rm -rf $($(@F)-LIST)