mirror of
https://github.com/Oreolek/gamebookformat.git
synced 2024-07-02 22:55:09 +03:00
Created GNU Makefile to help build files.
This commit is contained in:
parent
84bf6baea5
commit
81f27d0648
31
Makefile
Normal file
31
Makefile
Normal 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
|
||||||
|
|
9
test.sh
9
test.sh
|
@ -1,18 +1,15 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
./formatgamebook.py test.gamebook test.debug
|
make clean all
|
||||||
|
|
||||||
cat test.debug
|
cat test.debug
|
||||||
|
|
||||||
./formatgamebook.py test.gamebook test.dot
|
|
||||||
dot -Tpng test.dot > test.png && open test.png
|
dot -Tpng test.dot > test.png && open test.png
|
||||||
|
|
||||||
./formatgamebook.py test.gamebook test.tex
|
open test.pdf
|
||||||
pdflatex test.tex && open test.pdf
|
|
||||||
|
|
||||||
./formatgamebook.py test.gamebook test.html
|
|
||||||
open test.html
|
open test.html
|
||||||
|
|
||||||
./formatgamebook.py test.gamebook test.rtf
|
|
||||||
open test.rtf
|
open test.rtf
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue