.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