20chjl/figs/ux.fig/Makefile

44 lines
1.4 KiB
Makefile
Raw Normal View History

2020-11-25 06:10:59 +00:00
PROJECTNAME=ux-02 ux-0001
SIMPLEQ=simpleq
DATS=simpleq16-0.02.dat mueq16-0.02.dat bigeq16-0.02.dat simpleq16-0.0001.dat mueq16-0.0001.dat bigeq16-0.0001.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, $@)
simpleq16-0.02.dat:
julia $(SIMPLEQ)/main.jl -p "v_a=16;xmax=10;nx=200;rho=2e-2" -M simpleq ux >$@
mueq16-0.02.dat:
julia $(SIMPLEQ)/main.jl -p "v_a=16;xmax=10;nx=200;rho=2e-2" -M mueq ux > $@
bigeq16-0.02.dat:
julia $(SIMPLEQ)/main.jl -p "rho=2e-2;minlrho=-6;nlrho=60;v_a=16;eq=bigeq;N=16;P=8;xmax=10;nx=200;N=16;P=8" -M medeq ux > $@
simpleq16-0.0001.dat:
julia $(SIMPLEQ)/main.jl -p "v_a=16;xmax=40;nx=200;rho=1e-4" -M simpleq ux >$@
mueq16-0.0001.dat:
julia $(SIMPLEQ)/main.jl -p "v_a=16;xmax=40;nx=200;rho=1e-4" -M mueq ux > $@
bigeq16-0.0001.dat:
julia $(SIMPLEQ)/main.jl -p "rho=1e-4;minlrho=-6;nlrho=20;v_a=16;eq=bigeq;N=16;P=8;xmax=40;nx=200;N=16;P=8" -M medeq ux > $@
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