Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <ian@jauslin.org>2022-10-17 20:59:01 -0400
committerIan Jauslin <ian@jauslin.org>2022-10-17 20:59:01 -0400
commitbdf817efec1cfdd67cc6176a6664442fd98173ae (patch)
tree93d0abe475c342b2c0cac0dfdb16e2fa018bf4e6 /figs/diamonds.fig/Makefile
As presented at RUMA on 2022-10-12HEADv1.0master
Diffstat (limited to 'figs/diamonds.fig/Makefile')
-rw-r--r--figs/diamonds.fig/Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/figs/diamonds.fig/Makefile b/figs/diamonds.fig/Makefile
new file mode 100644
index 0000000..42b4031
--- /dev/null
+++ b/figs/diamonds.fig/Makefile
@@ -0,0 +1,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