]> git.saurik.com Git - apt.git/blame - buildlib/yodl_manpage.mak
- pt_BR update from Andre Luis Lopes <andrelop@debian.o...
[apt.git] / buildlib / yodl_manpage.mak
CommitLineData
8a9ec519
AL
1# -*- make -*-
2
3# This handles man pages in YODL format. We convert to the respective
4# output in the source directory then copy over to the final dest. This
5# means yodl is only needed if compiling from CVS
6
7# Input
8# $(SOURCE) - The documents to use, in the form foo.sect, ie apt-cache.8
9# the yodl files are called apt-cache.8.yo
10
11# See defaults.mak for information about LOCAL
12
13# Some local definitions
14ifdef YODL_MAN
15
16LOCAL := yodl-manpage-$(firstword $(SOURCE))
17$(LOCAL)-LIST := $(SOURCE)
18
19# Install generation hooks
20doc: $($(LOCAL)-LIST)
21veryclean: veryclean/$(LOCAL)
22
23$($(LOCAL)-LIST) :: % : %.yo
24 echo Creating man page $@
25 yodl2man -o $@ $<
26
27# Clean rule
28.PHONY: veryclean/$(LOCAL)
29veryclean/$(LOCAL):
30 -rm -rf $($(@F)-LIST)
31
32else
33
34# Strip from the source list any man pages we dont have compiled already
35SOURCE := $(wildcard $(SOURCE))
36
37endif
38
39# Chain to the manpage rule
40ifneq ($(words $(SOURCE)),0)
41include $(MANPAGE_H)
42endif