2010-01-02 20:24:01 +01:00
|
|
|
ALL := index.html README.html INSTALL.html examples.html pandoc.1.html html2markdown.1.html hsmarkdown.1.html markdown2pdf.1.html html2x.html
|
2007-01-09 19:55:50 +01:00
|
|
|
PANDOC_PATH ?= $(dir $(shell which pandoc))
|
2007-09-16 18:58:04 +02:00
|
|
|
MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -H css -A footer.html
|
2007-09-02 16:52:36 +02:00
|
|
|
all : $(ALL)
|
2007-01-09 21:42:13 +01:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
for file in $(ALL); do rm $$file; done; \
|
|
|
|
rm -r example*;
|
|
|
|
|
2008-01-23 03:17:47 +01:00
|
|
|
examples.txt : mkdemos.pl config.xsl S5DEMO README demos math.text
|
2007-01-10 03:33:33 +01:00
|
|
|
PATH=$(PANDOC_PATH):$$PATH ./mkdemos.pl demos $@
|
2007-02-19 05:47:12 +01:00
|
|
|
perl -pi -e 's!(href="(main|(my)?header|footer|example\d+)\.(html|tex|xml|css))"!\1.html"!g' $@
|
|
|
|
for file in $$(ls | egrep '(main|(my)?header|footer|example[0-9]+)\.(html|tex|xml|css)$$'); \
|
2007-09-02 16:52:36 +02:00
|
|
|
do highlight -k monospace -u utf-8 --style emacs $$file > $$file.html; \
|
2007-02-19 05:47:12 +01:00
|
|
|
done
|
2007-01-09 19:55:50 +01:00
|
|
|
|
2008-11-07 17:32:15 +01:00
|
|
|
examples.html : examples.txt
|
|
|
|
$(PANDOC_PATH)/pandoc -s -H css -A footer.html $< > $@
|
|
|
|
|
2007-09-16 18:58:04 +02:00
|
|
|
index.html : index.txt css
|
2007-07-14 08:28:09 +02:00
|
|
|
$(MAKEPAGE) --toc $< > $@
|
|
|
|
|
2007-09-16 18:58:04 +02:00
|
|
|
README.html : README css
|
2007-07-14 08:28:09 +02:00
|
|
|
$(MAKEPAGE) --toc $< > $@
|
2007-01-09 19:55:50 +01:00
|
|
|
|
2007-09-16 18:58:04 +02:00
|
|
|
INSTALL.html : INSTALL css
|
2007-07-14 08:28:09 +02:00
|
|
|
$(MAKEPAGE) --toc $< > $@
|
|
|
|
|
2007-09-16 18:58:04 +02:00
|
|
|
%.html : %.txt css
|
2007-01-09 19:55:50 +01:00
|
|
|
$(MAKEPAGE) $< > $@
|
|
|
|
|
2008-01-23 03:17:35 +01:00
|
|
|
%.1.html : %.1
|
2007-07-14 08:28:09 +02:00
|
|
|
groff -man -T html $< > $@
|
|
|
|
|
2007-09-16 18:58:04 +02:00
|
|
|
%.html : % css
|
2007-07-14 08:28:09 +02:00
|
|
|
$(MAKEPAGE) $< > $@
|
2007-01-09 19:55:50 +01:00
|
|
|
|
|
|
|
upload :
|
2007-09-15 03:53:49 +02:00
|
|
|
make -C .. upload
|