diff options
author | Vincent Batts <vbatts@hashbangbash.com> | 2011-04-15 09:08:04 -0400 |
---|---|---|
committer | Vincent Batts <vbatts@hashbangbash.com> | 2011-04-15 09:08:04 -0400 |
commit | ba067fdd5d703757f441f5c804b5d30d9bf0e048 (patch) | |
tree | 100655c8c09018dce981056bc223dd46807c5bc6 /Makefile | |
parent | 74aef0abc92c9af11e8b98e30065acdad828c4d4 (diff) | |
download | slackbook-ba067fdd5d703757f441f5c804b5d30d9bf0e048.tar.xz |
adding a pdf target. This requires dblatex.
Until dblatex is in SBo, the SlackBuild is at
http://github.com/vbatts/SlackBuilds/dblatex/
Diffstat (limited to 'Makefile')
-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 |