blob: 69812f7a7072fce38b94087013c9f421cbee5a84 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# makefile for documentation for pbuilder.
#required packages:
# docbook-xsl
# ldp-docbook-xsl
# xsltproc
# po4a
# dblatex
# the main XML file which is source to all documents
MASTERXML=pbuilder-doc.xml
HTMLDOCS= pbuilder-doc.html pbuilder-doc.ja.html pbuilder-doc.fr.html pbuilder-doc.de.html
ALIOTH_FILEHOSTING:=alioth.debian.org
all: $(HTMLDOCS)
%.html: %.xml pbuilder-doc.xsl
xsltproc pbuilder-doc.xsl $< > $@.tmp
mv $@.tmp $@
pbuilder-doc.%.xml: pbuilder-doc.%.po
po4a-translate -f docbook -m $(MASTERXML) -p $< -l $@ -k 1
pbuilder-doc.%.po: $(MASTERXML)
po4a-updatepo -f docbook -m $< -p $@
%.pdf: %.xml
# requires dblatex package.
dblatex $<
install: $(HTMLDOCS) pbuilder-doc.pdf
install -d -m 755 -o root -g root $(DESTDIR)/usr/share/doc/pbuilder/
install -m 644 -o root -g root $(HTMLDOCS) $(DESTDIR)/usr/share/doc/pbuilder/
install -m 644 -o root -g root pbuilder-doc.pdf $(DESTDIR)/usr/share/doc/pbuilder/
preview: pbuilder-doc.html
mozilla-firefox -remote "openfile($(PWD)/$<)"
release: pbuilder-doc.html pbuilder-doc.xml pbuilder-doc.css pbuilder-doc.xsl pbuilder-doc.pdf
scp $^ ${ALIOTH_FILEHOSTING}:/home/groups/pbuilder/htdocs/
clean:
rm -fv \
pbuilder-doc.pdf \
pbuilder-doc.glo \
pbuilder-doc.idx \
pbuilder-doc.log \
pbuilder-doc.out \
pbuilder-doc.aux \
pbuilder-doc.html \
pbuilder-doc.de.html \
pbuilder-doc.fr.html \
pbuilder-doc.ja.html \
pbuilder-doc.html.tmp
$(MAKE) -C debconf7 $@
.PHONY: preview release-netfort release clean
|