commit 7eac2a1acb5bcdb83692d8196a0e04484595bce6 parent 96b1ce9ebe76237609edabdf84875215d79a447c 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(-)
diff --git a/Makefile b/Makefile @@ -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