1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-07-01 06:05:11 +03:00
gamebookformat/Makefile

49 lines
1.1 KiB
Makefile
Raw Normal View History

examples=$(wildcard examples/*.gamebook)
2013-06-11 00:58:33 +03:00
all: rtf pdf html debug png txt
rtf: $(examples:.gamebook=.rtf)
pdf: $(examples:.gamebook=.pdf)
html: $(examples:.gamebook=.html)
debug: $(examples:.gamebook=.debug)
png: $(examples:.gamebook=.png)
txt: $(examples:.gamebook=.txt)
%.rtf: %.gamebook *.py templates/rtf/*.rtf
./formatgamebook.py --verify $< $@
%.html: %.gamebook *.py templates/html/*.html
./formatgamebook.py --verify $< $@
%.tex: %.gamebook *.py templates/tex/*.tex
./formatgamebook.py --verify $< $@
%.dot: %.gamebook *.py templates/dot/*.dot
./formatgamebook.py --verify $< $@
%.debug: %.gamebook *.py templates/debug/*.debug
./formatgamebook.py --verify $< $@
%.txt: %.gamebook *.py templates/txt/*.txt
./formatgamebook.py --verify $< $@
%.pdf: %.tex
cd $(dir $<) && pdflatex $(notdir $<) && pdflatex $(notdir $<)
%.png: %.dot
dot -Tpng $< > $@
clean:
$(RM) examples/*.rtf examples/*.html examples/*.tex \
examples/*.debug examples/*.pdf *~ examples/*~ *.pyc \
examples/*.dot examples/*.aux examples/*.toc examples/*.png \
examples/*.map
2013-06-04 01:02:02 +03:00
fixmes:
grep FIXME *.py
.PHONY: all clean fixmes
.PRECIOUS: %.tex %.dot