summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 945b56c9a2bc305cbf1a8e54a79f5a6b1d1fe077 (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
# $Id$

chapters = chapter_*.xml

book.html: build.sh main.xml $(chapters)
	sh build.sh && \
	ls -l $@

book.pdf: main.xml $(chapters)
	dblatex \
		--pdf \
		-x'-xinclude' \
		-o $@ \
		$<

view.pdf: book.pdf
	xdg-open $<

view.html: book.html
	xdg-open $<

.PHONY: clean
clean:
	rm -f book.html book.pdf

.DEFAULT_GOAL := book.html