summaryrefslogtreecommitdiff
path: root/faraday_and_psr/Makefile
blob: 1121c7022556dac5fcbfa3f5577438523c385a7a (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
36
37
38
39
40
41
42
PROBLEMS = $(wildcard tasks/*.mat)
RESULTS = $(PROBLEMS:tasks/%=results/%)


calculate: problems  solutions

solutions: results $(RESULTS)

results:
	@mkdir results


problems: tasks problems_prepared.stamp

tasks:
	@mkdir tasks

problems_prepared.stamp: builder_tasks.m
	@rm -f tasks/*
	@./builder_tasks.m
	@touch $@
	@echo "Please run again:  make calculate"

$(RESULTS): results/% : tasks/%
	./solver_task.m $< $@

tasks_clean:
	rm -rf tasks/*

results_clean:
	rm -rf results/*

clean: tasks_clean results_clean
	rm -f problems_prepared.stamp
	

real_clean: clean
	rm -rf tasks
	rm -rf results