forked from nkremerh/sugarscape
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
48 lines (34 loc) · 774 Bytes
/
Makefile
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
43
44
45
46
47
48
CONFIG = config.json
DATACHECK = data/data.complete
PLOTCHECK = plots/plots.complete
DATASET = $(DATACHECK) \
data/*[[:digit:]]*.config \
data/*.json
PLOTS = $(PLOTCHECK) \
plots/*.dat \
plots/*.pdf \
plots/*.plg
CLEAN = log.json \
$(DATASET) \
$(PLOTS)
# Change to python3 (or other alias) if needed
PYTHON = python
SH = bash
SUGARSCAPE = sugarscape.py
$(DATACHECK):
cd data && $(SH) collect.sh
touch $(DATACHECK)
$(PLOTCHECK): $(DATACHECK)
cd plots && $(SH) make_plots.sh
touch $(PLOTCHECK)
all: $(DATACHECK) $(PLOTCHECK)
data: $(DATACHECK)
plots: $(PLOTCHECK)
test:
$(PYTHON) $(SUGARSCAPE) --conf $(CONFIG)
clean:
rm -rf $(CLEAN) || true
lean:
rm -rf $(PLOTS) || true
.PHONY: all clean data lean plots
# vim: set noexpandtab tabstop=4: