Makefile (687B)
1 FIG != basename $(PWD) 2 BIN = ../cngf-pf/max_depth_simple_shear 3 4 default: ../$(FIG).pdf 5 6 sim.output00001.txt: ../fig-stick_slip_rate_nonlocality/sim.output00001.txt 7 cp ../fig-stick_slip_rate_nonlocality/sim.output*.txt . 8 9 ../$(FIG).pdf: fig.gp sim.output00001.txt ../skindepth.gp $(BIN) Makefile 10 sh -c '\ 11 out=$$($(BIN) \ 12 -n 200e3 \ 13 -k 2e-17 \ 14 -O 100e3 \ 15 -a 80e3 \ 16 -q $$( echo "1.0/(3600*24)" | bc -l )\ 17 ); \ 18 max_def_depth=$$(echo $$out | cut -d" " -f1); \ 19 skin_depth=$$(echo $$out | cut -d" " -f2); \ 20 gnuplot -e "skin_depth=8.0-$$skin_depth; max_def_depth=8.0-$$max_def_depth" \ 21 fig.gp > $@' 22 23 clean: 24 rm -f *.txt 25 rm -f ../$(FIG).pdf 26 27 .PHONY: default clean