5 # Bring in the default rules
6 include ../../buildlib/defaults.mak
8 # Do not use XMLTO, build the manpages directly with 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
15 LOCAL := manpage-$(firstword $(SOURCE))
16 $(LOCAL)-LIST := $(SOURCE)
18 apt-vendor.ent: ../../vendor/current/apt-vendor.ent
19 ln -sf $(shell readlink -f $^) $@
21 # Install generation hooks
22 manpages: $($(LOCAL)-LIST) apt.8
24 $($(LOCAL)-LIST) :: % : ../%.xml $(STYLESHEET) $(INCLUDES)
25 echo Creating man page $@
26 $(XSLTPROC) -o $@ $(STYLESHEET) $<
32 .PHONY: clean/$(LOCAL)
33 veryclean: clean/$(LOCAL)
36 -rm -rf $($(@F)-LIST) apt.8 apt-vendor.ent
39 # Chain to the manpage rule