Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'figs/cn.fig/Makefile')
-rw-r--r--figs/cn.fig/Makefile40
1 files changed, 40 insertions, 0 deletions
diff --git a/figs/cn.fig/Makefile b/figs/cn.fig/Makefile
new file mode 100644
index 0000000..e9c4fa7
--- /dev/null
+++ b/figs/cn.fig/Makefile
@@ -0,0 +1,40 @@
+PROJECTNAME=cn cn_short
+
+PHOTOCOMP_PATH=
+
+DATS=mc.dat cn.dat mc_short.dat cn_short.dat
+
+PDFS=$(addsuffix .pdf, $(PROJECTNAME))
+TEXS=$(addsuffix .tikz.tex, $(PROJECTNAME))
+
+all: $(PDFS)
+
+$(PDFS): $(DATS)
+ gnuplot $(patsubst %.pdf, %.gnuplot, $@) > $(patsubst %.pdf, %.tikz.tex, $@)
+ pdflatex -jobname $(basename $@) -file-line-error $(patsubst %.pdf, %.tikz.tex, $@)
+
+mc.dat:
+ $(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;J=30;E=15e9" mc > $@
+cn.dat:
+ $(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;E=15e9;x=0;bmin_cn=-1000;bmax_cn=1000;nx_cn=16000" cn > $@
+
+mc_short.dat:
+ $(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=0.0005;J=10;E=15e9" mc > $@
+cn_short.dat:
+ $(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=0.0005;E=15e9;x=0;bmin_cn=-1000;bmax_cn=1000;nx_cn=16000" cn > $@
+
+install: $(PDFS)
+ cp $^ $(INSTALLDIR)/
+
+clean-aux:
+ rm -f $(addsuffix .tikz.tex, $(PROJECTNAME))
+ rm -f $(addsuffix .aux, $(PROJECTNAME))
+ rm -f $(addsuffix .log, $(PROJECTNAME))
+
+clean-dat:
+ rm -f $(DATS)
+
+clean-tex:
+ rm -f $(PDFS)
+
+clean: clean-aux clean-tex