git.iko.soy/typeable/pandoc
on fdf31cd help sign in
30 lines 969 B history raw
1ALL := index.html osx-notes.html README.html INSTALL.html features.html changelog.html examples.html
2PANDOC_PATH ?= $(dir $(shell which pandoc))
3MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -B header.html -A footer.html -H css
4PANDOC_DEPS = header.html footer.html css
6all : $(ALL)
8.PHONY: clean
9clean:
10 for file in $(ALL); do rm $$file; done; \
11 rm -r example*;
13examples.txt : $(PANDOC_DEPS) mkdemos.pl config.xsl S5DEMO README
14 PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
15 perl -pi -e 's!(href="(main|(my)?header|footer|example\d+)\.(html|tex|xml|css))"!\1.html"!g' $@
16 for file in $$(ls | egrep '(main|(my)?header|footer|example[0-9]+)\.(html|tex|xml|css)$$'); \
17 do highlight -u utf-8 --style emacs $$file > $$file.html; \
18 done
20%.html : %.txt $(PANDOC_DEPS)
21 $(MAKEPAGE) $< > $@
23%.html : % $(PANDOC_DEPS)
24 $(MAKEPAGE) $< > $@
26changelog.html : changelog.txt $(PANDOC_DEPS)
27 $(MAKEPAGE) -T "Pandoc changelog" $< > $@
29upload :
30 sitecopy --update macfarlane