diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2011-11-16 23:16:04 -0500 |
---|---|---|
committer | Eugeniy E. Mikhailov <evgmik@gmail.com> | 2020-09-21 16:29:52 -0400 |
commit | 3c8f7e2f4527a47f46c79ea26f8ef0c42b36b552 (patch) | |
tree | 2b68d1e266f40c17ef3757a3ad901867a27ddc39 | |
parent | 396592e99e9c7aac3fd6f5445bcd7b7e675adfcb (diff) | |
download | multi_mode_eit-3c8f7e2f4527a47f46c79ea26f8ef0c42b36b552.tar.gz multi_mode_eit-3c8f7e2f4527a47f46c79ea26f8ef0c42b36b552.zip |
proper chaining of the make rules
-rw-r--r-- | faraday/Makefile | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/faraday/Makefile b/faraday/Makefile index 98956f6..2e68bf4 100644 --- a/faraday/Makefile +++ b/faraday/Makefile @@ -1,13 +1,34 @@ PROBLEMS = $(wildcard tasks/*.mat) - RESULTS = $(PROBLEMS:tasks/%=results/%) -calculate: $(RESULTS) + +calculate: problems solutions + +solutions: results $(RESULTS) + +results: + @mkdir results + + +problems: problems_prepared.stamp + +tasks: + @mkdir tasks + +problems_prepared.stamp: tasks tasks_builder.m + @./tasks_builder.m + @touch $@ + @echo "Please run again: make calculate" $(RESULTS): results/% : tasks/% ./task_solver.m $< $@ +clean: + rm -rf tasks + rm -rf results + + real_clean: - rm -f $(RESULTS) + rm -rf L0m.cache |