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