Ian Jauslin
summaryrefslogtreecommitdiff
blob: 25e0451a82b828100db4859b3e5356b15819668c (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
PROJECTNAME=avgcurrent decay avgcurrent-x

PHOTOCOMP_PATH=

DATS=avgcurrent.dat decay.dat avgcurrent-x.dat avgcurrent-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, $@)

avgcurrent.dat: save.dat
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=6;n_periods=48;J=480;E=10e9" mc -s save.dat > $@

decay.dat: save.dat
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=6;n_periods=48;J=480;E=10e9" mc_decay -s save.dat > $@

avgcurrent-x.dat: save.dat
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=6;t=48;n_periods=48;J=480;E=10e9" avgcurrent_x -s save.dat > $@

avgcurrent-x6.dat: save.dat
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=6;n_periods=48;J=480;E=10e9;x=6;nt=100" avgcurrent_t -s save.dat > $@

save.dat:
	$(PHOTOCOMP_PATH)photocomp -p "V=10;EF=4.5;omega=6;n_periods=48;J=480;E=10e9" save > $@

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) save.dat

clean-tex:
	rm -f $(PDFS)

clean: clean-aux clean-tex