git.iko.soy/typeable/pandoc
on master help sign in
Added 'update' target to web/Makefile.

git-svn-id: https://pandoc.googlecode.com/svn/trunk@1813 788f1e2b-df1e-0410-8736-df70ead52e1b

commit79a8862828047dfc6f21d0fcc0982e69f253fbcb authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateSun 17 Jan 2010, 00:28 (17 years ago) parentbd8ac75
1 file changed+11
web/Makefile+11
web/Makefile+11
@@ -1,6 +1,8 @@
11ALL := index.html README.html INSTALL.html examples.html pandoc.1.html html2markdown.1.html hsmarkdown.1.html markdown2pdf.1.html html2x.html
22PANDOC_PATH ?= $(dir $(shell which pandoc))
3+PANDOC_SRC ?= ${HOME}/src/pandoc
34MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -H css -A footer.html
5+
46all : $(ALL)
57
68.PHONY: clean
@@ -8,6 +10,15 @@ clean:
810 for file in $(ALL); do rm $$file; done; \
911 rm -r example*;
1012
13+# 'make update' pulls in source files from the pandoc source directory
14+sources := $(PANDOC_SRC)/dist/doc/html $(PANDOC_SRC)/changelog \
15+ $(PANDOC_SRC)/INSTALL $(wildcard $(PANDOC_SRC)/man/man1/*.1) \
16+ $(PANDOC_SRC)/man/man1/pandoc.1.md $(PANDOC_SRC)/README
17+update : $(sources)
18+ cp -r $(sources) . ; \
19+ mv html doc; \
20+ cp changelog changelog.txt
21+
1122examples.txt : mkdemos.pl config.xsl S5DEMO README demos math.text
1223 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
1324 perl -pi -e 's!(href="(main|(my)?header|footer|example\d+)\.(html|tex|xml|css))"!\1.html"!g' $@