38 lines
1.1 KiB
Makefile
38 lines
1.1 KiB
Makefile
|
PROJECTNAME=energy
|
||
|
|
||
|
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=1;minlrho=-6;nlrho=100;maxlrho=2" -M easyeq -U exp energy_rho > $@
|
||
|
medeq.dat:
|
||
|
julia $(SIMPLESOLV)/main.jl -p "eq=medeq;tolerance=1e-11;order=100;maxiter=100;v_a=1;minlrho=-6;nlrho=100;maxlrho=2" -M easyeq -U exp energy_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=1;minlrho=-6;nlrho=100;maxlrho=2" -M anyeq -U exp energy_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
|