-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (25 loc) · 1022 Bytes
/
Makefile
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
# Prerequisits:
# xmlto for html
# fop, docbook-xsl for pdf
#
# Use make -jN for full CPU utilization
#xsl = /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl
# for dockbook 5
xsl = /usr/share/xml/docbook/stylesheet/docbook-xsl/fo/docbook.xsl
xslt_params = -param paper.type A4 -param section.autolabel 1 -param toc.section.depth 3
xslt_params += -param section.label.includes.component.label 1 -param shade.verbatim 1
xslt_params += -param ulink.show 0 -param variablelist.as.blocks 1 -param variablelist.as.blocks 1
xslt_params += -param ulink.show 0 -param variablelist.as.blocks 1 -param use.extentions 1
.PHONY : all clean html pdf
html : book_ru/index.html book_en/index.html
pdf : book_ru.pdf book_en.pdf
all : html pdf
%/index.html : %.xml
@rm -rf $*; mkdir $*
@cd $* && ln -s ../img img
@nice -19 xmlto -o $* --skip-validation html $<
%.pdf : %.xml fop.xconf
@nice -19 fop ${xslt_params} -c fop.xconf -xml $*.xml -xsl $*.xsl -pdf $@
clean:
@rm -rf book_ru book_en
@rm -f *.fo *.pdf