From 78b64d3702290958cfb86c69e0bd95656dc72f0a Mon Sep 17 00:00:00 2001 From: Mike Taylor Date: Thu, 25 Jul 2013 14:24:02 +0100 Subject: [PATCH] Add support for building ODT and PDF versions of README. --- tools/htdocs/Makefile | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/tools/htdocs/Makefile b/tools/htdocs/Makefile index 5f265aa..38d5430 100644 --- a/tools/htdocs/Makefile +++ b/tools/htdocs/Makefile @@ -14,6 +14,7 @@ JQUERY_UI_URL= http://code.jquery.com/ui/1.10.3/jquery-ui.js #JQUERY_UI_URL= http://code.jquery.com/ui/1.8.0/jquery-ui.min.js MKWS_JS= mkws-complete.js +DOCS = README.html README.odt README.pdf all: ${MKWS_JS} README.html mkws-js ${MKWS_JS}: ../../../libjs-pz2/pz2api.1.js mkws.js @@ -25,7 +26,7 @@ mkws-js ${MKWS_JS}: ../../../libjs-pz2/pz2api.1.js mkws.js distclean: clean clean: - rm -f ${MKWS_JS} README.html + rm -f ${MKWS_JS} $(DOCS) help: @echo "make [ help | mkws-js | clean ]" @@ -40,6 +41,16 @@ help: README.html: README.markdown rm -f $@ - pandoc --standalone $< > $@ + pandoc --standalone $< -o $@ + chmod ugo-w $@ + +README.odt: README.markdown + rm -f $@ + pandoc --standalone $< -o $@ + chmod ugo-w $@ + +README.pdf: README.markdown + rm -f $@ + pandoc --standalone $< -o $@ chmod ugo-w $@ -- 1.7.10.4