summaryrefslogtreecommitdiff
path: root/faraday/Makefile
blob: 0a84c81c7d3f4f6d7ab280778e392c291dd10f64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
PROBLEMS = $(wildcard tasks/*.mat)
RESULTS = $(PROBLEMS:tasks/%=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 -f problems_prepared.stamp
	rm -rf tasks
	rm -rf results
	

real_clean:
	rm -rf L0m.cache