summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJan Huwald <jh@sotun.de>2012-05-07 19:53:27 (GMT)
committerJan Huwald <jh@sotun.de>2012-05-07 19:53:27 (GMT)
commit00b209240138660db1ded3ef3870023964ce6e4e (patch)
tree8ffaec780b060bdc478929aa714b8af2ee760671 /Makefile
Initial commitHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile46
1 files changed, 46 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..55c9aac
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,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
contact: Jan Huwald // Impressum