Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/regime.fig/Makefile')
-rw-r--r--figs/regime.fig/Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/figs/regime.fig/Makefile b/figs/regime.fig/Makefile
new file mode 100644
index 0000000..9544dcc
--- /dev/null
+++ b/figs/regime.fig/Makefile
@@ -0,0 +1,26 @@
+PROJECTNAME=regime
+
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+TEXS=$(addsuffix .tikz.tex, $(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 .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-dat:
+ rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
+ rm -f short-time.dat
+
+clean-tex:
+ rm -f $(PDFS)
+
+clean: clean-dat clean-aux clean-tex