git.iko.soy/typeable/pandoc
on 1.0 help sign in
37 lines 1.0 kB history raw
1ALL := index.html README.html INSTALL.html examples.html pandoc.1.html html2markdown.1.html hsmarkdown.1.html html2x.html
2PANDOC_PATH ?= $(dir $(shell which pandoc))
3MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -H css -A footer.html
4all : $(ALL)
6.PHONY: clean
7clean:
8 for file in $(ALL); do rm $$file; done; \
9 rm -r example*;
11examples.txt : mkdemos.pl config.xsl S5DEMO README demos math.text
12 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' $@
14 for file in $$(ls | egrep '(main|(my)?header|footer|example[0-9]+)\.(html|tex|xml|css)$$'); \
15 do highlight -k monospace -u utf-8 --style emacs $$file > $$file.html; \
16 done
18index.html : index.txt css
19 $(MAKEPAGE) --toc $< > $@
21README.html : README css
22 $(MAKEPAGE) --toc $< > $@
24INSTALL.html : INSTALL css
25 $(MAKEPAGE) --toc $< > $@
27%.html : %.txt css
28 $(MAKEPAGE) $< > $@
30%.1.html : %.1
31 groff -man -T html $< > $@
33%.html : % css
34 $(MAKEPAGE) $< > $@
36upload :
37 make -C .. upload