From 33da2a8069537732643da035107e64d1feb7db52 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Sun, 8 May 2011 21:57:44 -0400 Subject: adding a note into the makefile, to find dblatex, if it is not present --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3 From 51f0e5076a9809cee7449291afa0756f4958c2bf Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Mon, 9 May 2011 09:51:58 -0400 Subject: duh, use $(shell ) not `` --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4bff12c..86f6bda 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,8 @@ 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" + $(shell which dblatex 2>/dev/null || echo "ERROR: 'dblatex' REQUIRED, SEE http://github.com/vbatts/SlackBuilds/ FOR THE SlackBuild") + .PHONY: clean clean: -- cgit v1.2.3