summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Batts <vbatts@hashbangbash.com>2011-04-15 09:08:04 -0400
committerVincent Batts <vbatts@hashbangbash.com>2011-04-15 09:08:04 -0400
commitba067fdd5d703757f441f5c804b5d30d9bf0e048 (patch)
tree100655c8c09018dce981056bc223dd46807c5bc6
parent74aef0abc92c9af11e8b98e30065acdad828c4d4 (diff)
downloadslackbook-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/
-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