blob: 55c9aace5eee964b9bc81569a6f9ce8d7d934b98 (
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
43
44
45
46
|
.PHONY: all
all:
@echo "All does not exist\nChoose of:\n\tbackup\t- safe code and model definition\n\tclean\n\tcode\t- create code for all simulations\ndata\t- plain data for all models\n\tresults\t- graphs & co (what you expect when typing \"make all\")"
.PHONY: backup
BAKDIR="BAK/`date '+%Y-%m-%d_%s'`"
backup: clean
mkdir -p ${BAKDIR}
cp -a Makefile code model_input ${BAKDIR}
.PHONY: clean
clean:
rm -f *~
cd code && make clean
.PHONY: code
code:
cd code && make
.PHONY: input
input: code
cd model_input && make
.PHONY: data
data: code input data/leakyif_test/timestamp
.PHONY: results
results: data
@echo NOT IMPLEMENTED && false
# HINT: the dataset depends on the executable it is using (simulator might change) as well as on the data sources
# It also depends on a timestamp to know if the experiment is outdated
# a test of the leakyif model with some random input (mostly to test the simulator and toolchain)
INPUTFILES_LEAKYIF_TEST=model_input/neurons/if/1000_nocharge \
model_input/topology/if/1000_random \
model_input/spikes/1000N_10s_10Hz_random \
model_input/global/if/default
data/leakyif_test/timestamp: code code/core/sim-if $(INPUTFILES_LEAKYIF_TEST) model_input/trace/10s_10ms_all
-rm -Rf data/leakyif_test
mkdir -p data/leakyif_test
./code/glue/sim-wrapper if \
$(INPUTFILES_LEAKYIF_TEST) \
data/leakyif_test/neuron data/leakyif_test/synapse data/leakyif_test/spikes data/leakyif_test/global \
model_input/trace/10s_10ms_all
touch data/leakyif_test/timestamp
|