summaryrefslogtreecommitdiff
path: root/faraday
diff options
context:
space:
mode:
Diffstat (limited to 'faraday')
-rw-r--r--faraday/Makefile27
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