2013-06-04 23:36:09 +03:00
|
|
|
examples=$(wildcard examples/*.gamebook)
|
|
|
|
|
2013-06-11 00:58:33 +03:00
|
|
|
all: rtf pdf html debug png txt
|
2013-06-08 20:59:55 +03:00
|
|
|
|
|
|
|
rtf: $(examples:.gamebook=.rtf)
|
|
|
|
pdf: $(examples:.gamebook=.pdf)
|
|
|
|
html: $(examples:.gamebook=.html)
|
|
|
|
debug: $(examples:.gamebook=.debug)
|
|
|
|
png: $(examples:.gamebook=.png)
|
2013-06-10 23:15:54 +03:00
|
|
|
txt: $(examples:.gamebook=.txt)
|
2013-06-03 22:48:28 +03:00
|
|
|
|
2013-06-10 23:15:54 +03:00
|
|
|
%.rtf: %.gamebook *.py templates/rtf/*.rtf
|
2013-06-04 23:36:09 +03:00
|
|
|
./formatgamebook.py --verify $< $@
|
2013-06-03 22:48:28 +03:00
|
|
|
|
2013-06-10 23:15:54 +03:00
|
|
|
%.html: %.gamebook *.py templates/html/*.html
|
2013-06-04 23:36:09 +03:00
|
|
|
./formatgamebook.py --verify $< $@
|
2013-06-03 22:48:28 +03:00
|
|
|
|
2013-06-10 23:15:54 +03:00
|
|
|
%.tex: %.gamebook *.py templates/tex/*.tex
|
2013-06-04 23:36:09 +03:00
|
|
|
./formatgamebook.py --verify $< $@
|
2013-06-03 22:48:28 +03:00
|
|
|
|
2013-06-10 23:15:54 +03:00
|
|
|
%.dot: %.gamebook *.py templates/dot/*.dot
|
2013-06-04 23:36:09 +03:00
|
|
|
./formatgamebook.py --verify $< $@
|
2013-06-03 22:48:28 +03:00
|
|
|
|
2013-06-10 23:15:54 +03:00
|
|
|
%.debug: %.gamebook *.py templates/debug/*.debug
|
|
|
|
./formatgamebook.py --verify $< $@
|
|
|
|
|
|
|
|
%.txt: %.gamebook *.py templates/txt/*.txt
|
2013-06-04 23:36:09 +03:00
|
|
|
./formatgamebook.py --verify $< $@
|
2013-06-03 22:48:28 +03:00
|
|
|
|
|
|
|
%.pdf: %.tex
|
2013-06-04 23:36:09 +03:00
|
|
|
cd $(dir $<) && pdflatex $(notdir $<) && pdflatex $(notdir $<)
|
2013-06-03 22:48:28 +03:00
|
|
|
|
|
|
|
%.png: %.dot
|
|
|
|
dot -Tpng $< > $@
|
|
|
|
|
|
|
|
clean:
|
2013-06-04 23:36:09 +03:00
|
|
|
$(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-03 22:48:28 +03:00
|
|
|
|
2013-06-04 01:02:02 +03:00
|
|
|
fixmes:
|
|
|
|
grep FIXME *.py
|
|
|
|
|
|
|
|
.PHONY: all clean fixmes
|
2013-06-03 22:48:28 +03:00
|
|
|
|
|
|
|
.PRECIOUS: %.tex %.dot
|
|
|
|
|