summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 945b56c..86f6bda 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,10 @@ view.pdf: book.pdf
view.html: book.html
xdg-open $<
+.dblatex:
+ $(shell 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