2007-01-09 21:42:13 +01:00
|
|
|
ALL := index.html osx-notes.html README.html INSTALL.html features.html changelog.html examples.html
|
2007-01-09 19:55:50 +01:00
|
|
|
PANDOC_PATH ?= $(dir $(shell which pandoc))
|
|
|
|
MAKEPAGE = $(PANDOC_PATH)/pandoc -s -S -B header.html -A footer.html -H css
|
|
|
|
PANDOC_DEPS = header.html footer.html css
|
|
|
|
|
2007-01-09 21:42:13 +01:00
|
|
|
all : $(ALL)
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
for file in $(ALL); do rm $$file; done; \
|
|
|
|
rm -r example*;
|
|
|
|
|
2007-01-09 19:55:50 +01:00
|
|
|
examples.txt : $(PANDOC_DEPS) mkdemos.sh
|
2007-01-09 21:42:13 +01:00
|
|
|
./mkdemos.sh . $(PANDOC_PATH) > $@
|
2007-01-09 19:55:50 +01:00
|
|
|
|
|
|
|
%.html : %.txt $(PANDOC_DEPS)
|
|
|
|
$(MAKEPAGE) $< > $@
|
|
|
|
|
|
|
|
%.html : % $(PANDOC_DEPS)
|
|
|
|
$(MAKEPAGE) $< > $@
|
|
|
|
|
|
|
|
changelog.html : changelog.txt $(PANDOC_DEPS)
|
|
|
|
$(MAKEPAGE) -T "Pandoc changelog" $< > $@
|
|
|
|
|
|
|
|
upload :
|
|
|
|
sitecopy --update macfarlane
|