commit c089ca04c5236bba4aae61c03e9dd9d34f5f81b2 parent e67662e737625ad9ae464b8af4f75eeca37387d4 Author: Anders Damsgaard <anders@adamsgaard.dk> Date: Tue, 25 Jun 2019 10:13:08 +0200 Fix paths and clean target in makefiles Diffstat:
A | 1d_fd_simple_shear | | | 1 | + |
M | Makefile | | | 6 | +++--- |
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/1d_fd_simple_shear b/1d_fd_simple_shear @@ -0,0 +1 @@ +Subproject commit e9f983205ea05513c2cda4ea4e899b58e22ba258 diff --git a/Makefile b/Makefile @@ -4,8 +4,8 @@ FIGURES := $(FIGDIRS:/=).pdf default: $(FIGURES) -fig%.pdf: fig% - make -C fig% +fig%.pdf: fig% $(REPO)/$(REPO) + make -C $< $(REPO)/$(REPO): $(REPO)/Makefile make -C $(REPO) @@ -17,7 +17,7 @@ print-%: @echo '$*=$($*)' clean: - $(RM) -r $(REPO)/ + make -C $(REPO)/ clean $(RM) -r fig*.pdf .PHONY: default figures clean