PROJECTNAME=condensate SIMPLESOLV= # path/to/simplesolv DATS=simpleq.dat medeq.dat bigeq.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, $@) simpleq.dat: julia $(SIMPLESOLV)/main.jl -p "eq=simpleq;tolerance=1e-11;order=100;maxiter=100;v_a=0.5;minlrho=-6;nlrho=100;maxlrho=2" -M easyeq -U exp condensate_fraction_rho > $@ medeq.dat: julia $(SIMPLESOLV)/main.jl -p "eq=medeq;tolerance=1e-11;order=100;maxiter=100;v_a=0.5;minlrho=-6;nlrho=100;maxlrho=2" -M easyeq -U exp condensate_fraction_rho > $@ bigeq.dat: julia -p 8 $(SIMPLESOLV)/main.jl -p "eq=bigeq;N=12;P=8;J=10;tolerance=1e-11;maxiter=21;v_a=0.5;minlrho=-6;nlrho=100;maxlrho=2" -M anyeq -U exp condensate_fraction_rho > $@ 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