tadd root Makefile - 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
---
(DIR) commit 7eac2a1acb5bcdb83692d8196a0e04484595bce6
(DIR) parent 96b1ce9ebe76237609edabdf84875215d79a447c
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 19 Apr 2022 15:32:02 +0200
add root Makefile
Diffstat:
A Makefile | 23 +++++++++++++++++++++++
1 file changed, 23 insertions(+), 0 deletions(-)
---
(DIR) diff --git a/Makefile b/Makefile
t@@ -0,0 +1,23 @@
+.POSIX:
+
+REPO = cngf-pf
+FIGDIRS != find . -maxdepth 1 -type d -name 'fig-*' | sed 's/\.\///'
+FIGURES = $(FIGDIRS:=.pdf)
+
+default: $(FIGURES)
+
+fig-effective_stress.pdf: $(REPO)/$(REPO)
+ (cd $(@:.pdf=) && make)
+
+fig-velocity.pdf: $(REPO)/$(REPO)
+ (cd $(@:.pdf=) && make)
+
+$(REPO)/Makefile:
+ git submodule update --init --recursive
+
+clean:
+ make -C $(REPO)/ clean
+ rm -f fig*.pdf
+ for d in $(FIGDIRS); do (cd $$d && make clean); done
+
+.PHONY: default figures clean