46 lines
1.3 KiB
Makefile
46 lines
1.3 KiB
Makefile
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
|