mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-07-01 06:05:11 +03:00
32 lines
564 B
Makefile
32 lines
564 B
Makefile
|
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
|
||
|
pdflatex $<
|
||
|
|
||
|
%.png: %.dot
|
||
|
dot -Tpng $< > $@
|
||
|
|
||
|
clean:
|
||
|
$(RM) *.rtf *.html *.tex *.debug *.pdf *~ *.pyc *.dot \
|
||
|
*.aux *.toc *.png
|
||
|
|
||
|
.PHONY: all clean
|
||
|
|
||
|
.PRECIOUS: %.tex %.dot
|
||
|
|