blob: 4bff12c0c229cdaff0c9c2b7c3a063401a604734 (
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
|
# $Id$
chapters = chapter_*.xml
book.html: build.sh main.xml $(chapters)
sh build.sh && \
ls -l $@
book.pdf: main.xml $(chapters) .dblatex
dblatex \
--pdf \
-x'-xinclude' \
-o $@ \
$<
view.pdf: book.pdf
xdg-open $<
view.html: book.html
xdg-open $<
.dblatex:
which dblatex 2>/dev/null || echo "ERROR: 'dblatex' REQUIRED, SEE http://github.com/vbatts/SlackBuilds/ FOR THE SlackBuild"
.PHONY: clean
clean:
rm -f book.html book.pdf
.DEFAULT_GOAL := book.html
|