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