From 3c8f7e2f4527a47f46c79ea26f8ef0c42b36b552 Mon Sep 17 00:00:00 2001 From: Eugeniy Mikhailov Date: Wed, 16 Nov 2011 23:16:04 -0500 Subject: proper chaining of the make rules --- faraday/Makefile | 27 ++++++++++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) (limited to 'faraday/Makefile') 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 -- cgit v1.2.3