diff options
-rw-r--r-- | Makefile | 20 |
1 files changed, 15 insertions, 5 deletions
@@ -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 |