mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-06-26 03:41:04 +03:00
45 lines
991 B
Makefile
45 lines
991 B
Makefile
examples=$(wildcard examples/*.gamebook)
|
|
|
|
all: rtf pdf html debug png
|
|
|
|
rtf: $(examples:.gamebook=.rtf)
|
|
pdf: $(examples:.gamebook=.pdf)
|
|
html: $(examples:.gamebook=.html)
|
|
debug: $(examples:.gamebook=.debug)
|
|
png: $(examples:.gamebook=.png)
|
|
|
|
%.rtf: %.gamebook formatgamebook.py
|
|
./formatgamebook.py --verify $< $@
|
|
|
|
%.html: %.gamebook formatgamebook.py
|
|
./formatgamebook.py --verify $< $@
|
|
|
|
%.tex: %.gamebook formatgamebook.py
|
|
./formatgamebook.py --verify $< $@
|
|
|
|
%.dot: %.gamebook formatgamebook.py
|
|
./formatgamebook.py --verify $< $@
|
|
|
|
%.debug: %.gamebook formatgamebook.py
|
|
./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
|
|
|
|
fixmes:
|
|
grep FIXME *.py
|
|
|
|
.PHONY: all clean fixmes
|
|
|
|
.PRECIOUS: %.tex %.dot
|
|
|