SQLDB="exodus/exodus.db" help: #Usage @grep -e '[a-z\-]:' -e '^#' Makefile | sed -e 's/:.*/:/g' | tr '\n' '@' |\ sed -e 's/@#/ /g' -e 's/@$$//g' | tr '@' '\n' |\ sed -e 's/^/make /g' init: ./bin/buildout #Setup environment database @./bin/buildout @echo "no" | ./bin/django syncdb syncdb: # syncdatabase @echo "no" | ./bin/django syncdb ./bin/buildout: #Setup environment database - part creation @python bootstrap.py debug: init #Run server in extra debugging mode @./bin/django runserver_plus run: init #Run server in normal power mode @./bin/django runserver debug-init: init #Put debug.sql in database @sqlite3 $(SQLDB) < debug.sql dbdebug: #Put debug.sql in database @sqlite3 $(SQLDB) < debug.sql dbclean: # remove the database @rm -r $(SQLDB) clean: #Remove all created data, development ground, but keep downloaded files @rm -f $(SQLDB) @rm -Rf develop-eggs eggs parts .installed.cfg bin dist-clean: clean #Remove all created data, development ground and downloaded files @rm -Rf downloads test: init # Testing suite @./bin/test genesis: # import data from exodus @echo 'Using input file at variable PY_CONF containing the location of py.conf "$(PY_CONF)"' @echo 'py.conf is generated by running "for file in CNode*/wleiden.conf ' @echo 'proxy*/wleiden.conf; do ./genesis-to-py.pl $$file; done > py.conf"' @echo 'at genesis directory' @echo 'If import fails, make sure to use a fresh database (hint: make new)' @echo '' @./bin/django runscript genesis_to_exodus $(PY_CONF) new: clean debug-init debug #Fresh start, with new datebase which include debugging code batch: clean debug-init run #Intended usage for batch runs only e.g. no debug server newdb: #Create new empty database (used at genesis import) @echo "yes" | ./bin/django reset_db ; echo "no" | ./bin/django syncdb