summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 525e149..945b56c 100644
--- a/Makefile
+++ b/Makefile
@@ -2,15 +2,25 @@
chapters = chapter_*.xml
-book.html: build.sh $(chapters)
+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
-
-view: book.html
- xdg-open book.html
+ rm -f book.html book.pdf
.DEFAULT_GOAL := book.html