1
0
Fork 0
mirror of https://github.com/Oreolek/gamebookformat.git synced 2024-06-26 03:41:04 +03:00

Created GNU Makefile to help build files.

This commit is contained in:
Pelle Nilsson 2013-06-03 21:48:28 +02:00
parent 84bf6baea5
commit 81f27d0648
2 changed files with 34 additions and 6 deletions

31
Makefile Normal file
View file

@ -0,0 +1,31 @@
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

View file

@ -1,18 +1,15 @@
#!/bin/sh
./formatgamebook.py test.gamebook test.debug
make clean all
cat test.debug
./formatgamebook.py test.gamebook test.dot
dot -Tpng test.dot > test.png && open test.png
./formatgamebook.py test.gamebook test.tex
pdflatex test.tex && open test.pdf
open test.pdf
./formatgamebook.py test.gamebook test.html
open test.html
./formatgamebook.py test.gamebook test.rtf
open test.rtf