From ba067fdd5d703757f441f5c804b5d30d9bf0e048 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Fri, 15 Apr 2011 09:08:04 -0400 Subject: adding a pdf target. This requires dblatex. Until dblatex is in SBo, the SlackBuild is at http://github.com/vbatts/SlackBuilds/dblatex/ --- Makefile | 20 +++++++++++++++----- 1 file 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 -- cgit v1.2.3