]> git.saurik.com Git - apt.git/blob - doc/en/makefile
a4fb232d4c3dcc4a5a5ff9321c30d8d4a2d46d92
[apt.git] / doc / en / makefile
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
13 STYLESHEET=../manpage-style.xsl
14
15 LOCAL := manpage-$(firstword $(SOURCE))
16 $(LOCAL)-LIST := $(SOURCE)
17
18 # Install generation hooks
19 manpages: $($(LOCAL)-LIST) apt.8
20
21 $($(LOCAL)-LIST) :: % : ../%.xml $(STYLESHEET) $(INCLUDES)
22 echo Creating man page $@
23 $(XSLTPROC) -o $@ $(STYLESHEET) $<
24
25 apt.8: ../apt.8
26 cp -a ../apt.8 apt.8
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.8
34 endif
35
36 # Chain to the manpage rule
37 SOURCE = apt.8
38 include $(MANPAGE_H)