Ian Jauslin
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jauslin <ian@jauslin.org>2019-11-01 00:45:19 -0400
committerIan Jauslin <ian@jauslin.org>2019-11-01 00:45:19 -0400
commit372628e8602e724a5cd0a6e211179255f4b75adb (patch)
treea552f6f18d0bd3c4d0156fa82c5c6b76ffa481f9 /figs/cn.fig/Makefile
Initial commitv0.0
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