2013-06-03 22:48:28 +03:00
|
|
|
all: test.rtf test.pdf test.html test.debug test.png
|
|
|
|
|
|
|
|
%.rtf: %.gamebook formatgamebook.py
|
|
|
|
./formatgamebook.py $< $@
|
|
|
|
|
|
|
|
%.html: %.gamebook formatgamebook.py
|
|
|
|
./formatgamebook.py $< $@
|
|
|
|
|
|
|
|
%.tex: %.gamebook formatgamebook.py
|
|
|
|
./formatgamebook.py $< $@
|
|
|
|
|
|
|
|
%.dot: %.gamebook formatgamebook.py
|
|
|
|
./formatgamebook.py $< $@
|
|
|
|
|
|
|
|
%.debug: %.gamebook formatgamebook.py
|
|
|
|
./formatgamebook.py $< $@
|
|
|
|
|
|
|
|
%.pdf: %.tex
|
2013-06-04 01:57:45 +03:00
|
|
|
pdflatex $< && pdflatex $<
|
2013-06-03 22:48:28 +03:00
|
|
|
|
|
|
|
%.png: %.dot
|
|
|
|
dot -Tpng $< > $@
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) *.rtf *.html *.tex *.debug *.pdf *~ *.pyc *.dot \
|
|
|
|
*.aux *.toc *.png
|
|
|
|
|
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
|
|
|
|
|