]>
Commit | Line | Data |
---|---|---|
1 | # -*- make -*- | |
2 | BASE=../.. | |
3 | SUBDIR=doc/en | |
4 | ||
5 | # Bring in the default rules | |
6 | include ../../buildlib/defaults.mak | |
7 | ||
8 | # Do not use XMLTO, build the manpages directly with XSLTPROC | |
9 | ifdef XSLTPROC | |
10 | # generate a list of accepted man page translations | |
11 | SOURCE = $(patsubst ../%.xml,%,$(wildcard ../*.?.xml)) | |
12 | INCLUDES = ../apt.ent ../apt-verbatim.ent apt-vendor.ent | |
13 | STYLESHEET=../manpage-style.xsl | |
14 | ||
15 | LOCAL := manpage-$(firstword $(SOURCE)) | |
16 | $(LOCAL)-LIST := $(SOURCE) | |
17 | ||
18 | apt-vendor.ent: ../../vendor/current/apt-vendor.ent | |
19 | ln -sf '$(abspath $^)' $@ | |
20 | ||
21 | # Install generation hooks | |
22 | manpages: $($(LOCAL)-LIST) | |
23 | ||
24 | $($(LOCAL)-LIST) :: % : ../%.xml $(STYLESHEET) $(INCLUDES) | |
25 | echo Creating man page $@ | |
26 | $(XSLTPROC) -o $@ $(STYLESHEET) $< | |
27 | ||
28 | # Clean rule | |
29 | .PHONY: clean/$(LOCAL) | |
30 | veryclean: clean/$(LOCAL) | |
31 | clean: clean/$(LOCAL) | |
32 | clean/$(LOCAL): | |
33 | -rm -rf $($(@F)-LIST) apt-vendor.ent | |
34 | endif | |
35 | ||
36 | # Chain to the manpage rule | |
37 | include $(MANPAGE_H) |