git.iko.soy/typeable/pandoc
on master help sign in
Added 'update' target to web/Makefile.
79a8862fiddlosopher
web/Makefile+11
@@ -1,6 +1,8 @@
1ALL := index.html README.html INSTALL.html examples.html pandoc.1.html html2markdown.1.html hsmarkdown.1.html markdown2pdf.1.html html2x.html
1ALL := index.html README.html INSTALL.html examples.html pandoc.1.html html2markdown.1.html hsmarkdown.1.html markdown2pdf.1.html html2x.html
2PANDOC_PATH ?= $(dir $(shell which pandoc))
2PANDOC_PATH ?= $(dir $(shell which pandoc))
3+PANDOC_SRC ?= ${HOME}/src/pandoc
3MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -H css -A footer.html
4MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -H css -A footer.html
5+
4all : $(ALL)
6all : $(ALL)
5
7
6.PHONY: clean
8.PHONY: clean
@@ -8,6 +10,15 @@ clean:
8 for file in $(ALL); do rm $$file; done; \
10 for file in $(ALL); do rm $$file; done; \
9 rm -r example*;
11 rm -r example*;
10
12
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+
11examples.txt : mkdemos.pl config.xsl S5DEMO README demos math.text
22examples.txt : mkdemos.pl config.xsl S5DEMO README demos math.text
12 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
23 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
13 perl -pi -e 's!(href="(main|(my)?header|footer|example\d+)\.(html|tex|xml|css))"!\1.html"!g' $@
24 perl -pi -e 's!(href="(main|(my)?header|footer|example\d+)\.(html|tex|xml|css))"!\1.html"!g' $@