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