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/shapes.fig/Makefile
As presented at RUMA on 2022-10-12HEADv1.0master
Diffstat (limited to 'figs/shapes.fig/Makefile')
-rw-r--r--figs/shapes.fig/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/figs/shapes.fig/Makefile b/figs/shapes.fig/Makefile
new file mode 100644
index 0000000..33b81e2
--- /dev/null
+++ b/figs/shapes.fig/Makefile
@@ -0,0 +1,28 @@
+PROJECTNAME=$(basename $(basename $(wildcard *.tikz.tex)))
+LIBS=$(notdir $(wildcard libs/*))
+
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+
+all: $(PDFS)
+
+$(PDFS): $(LIBS)
+ echo $(LIBS)
+ pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
+
+install: $(PDFS)
+ cp $^ $(INSTALLDIR)/
+
+$(LIBS):
+ ln -fs libs/$@ ./
+
+clean-libs:
+ rm -f $(LIBS)
+
+clean-aux:
+ rm -f $(addsuffix .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-tex:
+ rm -f $(PDFS)
+
+clean: clean-libs clean-aux clean-tex