Ian Jauslin
summaryrefslogtreecommitdiff
blob: 9091f2d3f2b0256118c70ef4ef51587424c9aa05 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
PROJECTNAME=current01 current15 current30 current-k621 current-k124 current-x density-x

PHOTOCOMP_PATH=

DATS=mc01.dat mc15.dat 30.save mc30.dat mc15-.dat mc7-.dat x2.dat x4.dat x6.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, $@)

mc01.dat:
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;nt=500;J=30;E=1e9" mc > $@
mc15.dat:
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;nt=500;J=30;E=15e9" mc > $@
30.save:
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;nt=500;J=60;E=30e9" save > $@
mc30.dat: 30.save
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;nt=500;J=60;E=30e9" -s 30.save mc > $@
mc15-.dat:
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=0.755;n_periods=3;nt=500;J=120;E=15e9" mc > $@
mc7-.dat:
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=0.755;n_periods=3;nt=500;J=60;E=7.5e9" mc > $@
x2.dat: 30.save
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;J=60;nt=500;E=30e9;x=2" -s 30.save psixt > $@
x4.dat: 30.save
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;J=60;nt=500;E=30e9;x=4" -s 30.save psixt > $@
x6.dat: 30.save
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=1.55;n_periods=3;J=60;nt=500;E=30e9;x=6" -s 30.save psixt > $@

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