tMakefile - hansen-zoet-exp - comparison of lab and model results of sediment advection
 (HTM) git clone git://src.adamsgaard.dk/hansen-zoet-exp
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) LICENSE
       ---
       tMakefile (1038B)
       ---
            1 BIN = ../cngf-pf/cngf-pf
            2 FIG = $(shell basename $(CURDIR))
            3 
            4 default: ../$(FIG)-strain_distribution.pdf ../$(FIG)-velocity_stress.pdf
            5 
            6 strain_distribution_vx3.17e-6ms.txt: $(BIN) Makefile
            7         sh -c '\
            8         for vx in 3.17e-6 9.51e-6 1.90e-5 2.85e-5 3.81e-5; do \
            9                 ./$(BIN) \
           10                 -d 800e-6 \
           11                 -m 0.661 \
           12                 -c 30e3 \
           13                 -p 0.25 \
           14                 -r 1600 \
           15                 -s $$vx \
           16                 -o 0.0 \
           17                 -L 0.11 \
           18                 -n 22e3 \
           19                 -A 0.48 \
           20                 -b 0.9377 \
           21                 > strain_distribution_vx$${vx}ms.txt; \
           22         done'
           23 
           24 velocity_stress.txt: strain_distribution_vx3.17e-6ms.txt
           25         sh -c '\
           26         rm -f $@; \
           27         for vx in 3.17e-6 9.51e-6 1.90e-5 2.85e-5 3.81e-5; do \
           28                 tail -n 1 strain_distribution_vx$${vx}ms.txt | cut -f2- >> $@; \
           29         done'
           30 
           31 ../$(FIG)-strain_distribution.pdf: fig-strain_distribution.gp strain_distribution_vx3.17e-6ms.txt
           32         gnuplot fig-strain_distribution.gp > $@
           33 
           34 ../$(FIG)-velocity_stress.pdf: fig-velocity_stress.gp velocity_stress.txt
           35         gnuplot fig-velocity_stress.gp > $@
           36 
           37 clean:
           38         rm -f *.txt
           39         rm -f ../$(FIG)-strain_distribution.pdf
           40         rm -f ../$(FIG)-velocity_stress.pdf
           41 
           42 .PHONY: default clean