From c80f181137df4953ae994ef096ca1aedb3a873b0 Mon Sep 17 00:00:00 2001 From: fiddlosopher Date: Tue, 9 Jan 2007 18:55:50 +0000 Subject: Reorganized Makefile target - now uses a subsidiary Makefile that can be run from the website directory for small changes. git-svn-id: https://pandoc.googlecode.com/svn/trunk@485 788f1e2b-df1e-0410-8736-df70ead52e1b --- web/Makefile | 20 ++++++++++++++++++++ web/mkdemos.sh | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 web/Makefile (limited to 'web') diff --git a/web/Makefile b/web/Makefile new file mode 100644 index 000000000..644ce61db --- /dev/null +++ b/web/Makefile @@ -0,0 +1,20 @@ +all: index.html osx-notes.html README.html INSTALL.html features.html changelog.html examples.html + +PANDOC_PATH ?= $(dir $(shell which pandoc)) +MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -B header.html -A footer.html -H css +PANDOC_DEPS = header.html footer.html css + +examples.txt : $(PANDOC_DEPS) mkdemos.sh + ./mkdemos.sh . $$PANDOC_PATH > $@ + +%.html : %.txt $(PANDOC_DEPS) + $(MAKEPAGE) $< > $@ + +%.html : % $(PANDOC_DEPS) + $(MAKEPAGE) $< > $@ + +changelog.html : changelog.txt $(PANDOC_DEPS) + $(MAKEPAGE) -T "Pandoc changelog" $< > $@ + +upload : + sitecopy --update macfarlane diff --git a/web/mkdemos.sh b/web/mkdemos.sh index 48cee6f91..19c17053f 100755 --- a/web/mkdemos.sh +++ b/web/mkdemos.sh @@ -1,7 +1,7 @@ #!/bin/sh -e # creates example page for pandoc # argument #1 is the destination directory -# argument #2 is the directory containing pandoc, html2markdown, markdown2pdf +# argument #2 is pandoc path DEST=$1 PROGPATH=$2 -- cgit v1.2.3