Ian Jauslin
summaryrefslogtreecommitdiff
blob: 42b40314a7c7f6dedb5fa27e662ead3226ae4890 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all: diamonds

diamonds:
	python diamonds.py > diamonds.tikz.tex
	cat diamonds.tikz.tex | sed 's/%1%/red/g;s/%2%/blue/g' > diamonds_color.tikz.tex
	sed -i 's/%1%/teal/g;s/%2%/teal/g' diamonds.tikz.tex
	pdflatex -jobname diamonds diamonds.tikz.tex
	pdflatex -jobname diamonds_color diamonds_color.tikz.tex

clean-aux:
	rm -f diamonds.tikz.tex
	rm -f diamonds.log
	rm -f diamonds.aux
	rm -f diamonds_color.tikz.tex
	rm -f diamonds_color.log
	rm -f diamonds_color.aux

clean: clean-aux
	rm -f diamonds.pdf
	rm -f diamonds_color.pdf