]>
Commit | Line | Data |
---|---|---|
ac62eb38 DK |
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)) | |
694ef56e | 12 | INCLUDES = ../apt.ent ../apt-verbatim.ent apt-vendor.ent |
ac62eb38 DK |
13 | STYLESHEET=../manpage-style.xsl |
14 | ||
15 | LOCAL := manpage-$(firstword $(SOURCE)) | |
16 | $(LOCAL)-LIST := $(SOURCE) | |
17 | ||
694ef56e DK |
18 | apt-vendor.ent: ../../vendor/current/apt-vendor.ent |
19 | ln -sf $(shell readlink -f $^) $@ | |
20 | ||
ac62eb38 | 21 | # Install generation hooks |
5e41d390 | 22 | manpages: $($(LOCAL)-LIST) apt.7 |
ac62eb38 DK |
23 | |
24 | $($(LOCAL)-LIST) :: % : ../%.xml $(STYLESHEET) $(INCLUDES) | |
25 | echo Creating man page $@ | |
26 | $(XSLTPROC) -o $@ $(STYLESHEET) $< | |
27 | ||
5e41d390 MV |
28 | apt.7: ../apt.7 |
29 | cp -a ../apt.7 apt.7 | |
ac62eb38 DK |
30 | |
31 | # Clean rule | |
32 | .PHONY: clean/$(LOCAL) | |
33 | veryclean: clean/$(LOCAL) | |
34 | clean: clean/$(LOCAL) | |
35 | clean/$(LOCAL): | |
5e41d390 | 36 | -rm -rf $($(@F)-LIST) apt.7 apt-vendor.ent |
ac62eb38 DK |
37 | endif |
38 | ||
39 | # Chain to the manpage rule | |
5e41d390 | 40 | SOURCE = apt.7 |
ac62eb38 | 41 | include $(MANPAGE_H) |