summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 945b56c..4bff12c 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ book.html: build.sh main.xml $(chapters)
sh build.sh && \
ls -l $@
-book.pdf: main.xml $(chapters)
+book.pdf: main.xml $(chapters) .dblatex
dblatex \
--pdf \
-x'-xinclude' \
@@ -19,6 +19,9 @@ view.pdf: book.pdf
view.html: book.html
xdg-open $<
+.dblatex:
+ which dblatex 2>/dev/null || echo "ERROR: 'dblatex' REQUIRED, SEE http://github.com/vbatts/SlackBuilds/ FOR THE SlackBuild"
+
.PHONY: clean
clean:
rm -f book.html book.pdf