Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/phase_diag.fig/Makefile')
-rw-r--r--figs/phase_diag.fig/Makefile23
1 files changed, 23 insertions, 0 deletions
diff --git a/figs/phase_diag.fig/Makefile b/figs/phase_diag.fig/Makefile
new file mode 100644
index 0000000..9e60404
--- /dev/null
+++ b/figs/phase_diag.fig/Makefile
@@ -0,0 +1,23 @@
+PROJECTNAME=$(basename $(wildcard *.gnuplot))
+
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+
+all: $(PDFS)
+
+$(PDFS):
+ gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
+ pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
+
+install: $(PDFS)
+ cp $^ $(INSTALLDIR)/
+
+
+clean-aux:
+ rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
+ rm -f $(addsuffix .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-pdf:
+ rm -f $(PDFS)
+
+clean: clean-aux clean-pdf