-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
34 lines (26 loc) · 1.04 KB
/
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
34
STYLESHEETS_DIR = /usr/share/xml/docbook/stylesheet/docbook-xsl
all: date single-file pdf pages epub
date:
date +%Y-%m-%d >src/date.txt
pages:
xsltproc --stringparam base.dir "book/" \
--stringparam chunk.first.sections "1" \
--stringparam use.id.as.filename "1" \
--stringparam toc.section.depth "1" \
--stringparam html.stylesheet "../css/style.css" \
-o index.html $(STYLESHEETS_DIR)/xhtml/chunk.xsl src/linked-data-patterns.xml
single-file:
xsltproc --stringparam base.dir "book/" \
--stringparam toc.section.depth "1" \
--stringparam html.stylesheet "../css/style.css" \
-o book/index-full.html $(STYLESHEETS_DIR)/xhtml/docbook.xsl src/linked-data-patterns.xml
fo:
xsltproc --stringparam base.dir "book/" \
--stringparam toc.section.depth "1" \
-o book/linked-data-patterns.fo $(STYLESHEETS_DIR)/fo/docbook.xsl src/linked-data-patterns.xml
pdf: fo
fop -pdf book/linked-data-patterns.pdf -fo book/linked-data-patterns.fo
epub:
dbtoepub -o book/linked-data-patterns.epub src/linked-data-patterns.xml
clean:
rm -rf book