[6353] | 1 | SQLDB="exodus/exodus.db"
|
---|
[6258] | 2 |
|
---|
[6255] | 3 | help:
|
---|
| 4 | #Usage
|
---|
[6314] | 5 | @grep -e '[a-z\-]:' -e '^#' Makefile | sed -e 's/:.*/:/g' | tr '\n' '@' |\
|
---|
| 6 | sed -e 's/@#/ /g' -e 's/@$$//g' | tr '@' '\n' |\
|
---|
| 7 | sed -e 's/^/make /g'
|
---|
[6255] | 8 |
|
---|
[6343] | 9 | init: ./bin/buildout
|
---|
| 10 | #Setup environment database
|
---|
| 11 | @./bin/buildout
|
---|
| 12 | @echo "no" | ./bin/django syncdb
|
---|
| 13 |
|
---|
[6431] | 14 | syncdb:
|
---|
| 15 | # syncdatabase
|
---|
| 16 | @echo "no" | ./bin/django syncdb
|
---|
| 17 |
|
---|
[6343] | 18 | ./bin/buildout:
|
---|
| 19 | #Setup environment database - part creation
|
---|
| 20 | @python bootstrap.py
|
---|
| 21 |
|
---|
| 22 |
|
---|
| 23 | debug: init
|
---|
[6255] | 24 | #Run server in extra debugging mode
|
---|
[6340] | 25 | @./bin/django runserver_plus
|
---|
[6255] | 26 |
|
---|
[6343] | 27 | run: init
|
---|
[6255] | 28 | #Run server in normal power mode
|
---|
[6340] | 29 | @./bin/django runserver
|
---|
[6255] | 30 |
|
---|
| 31 |
|
---|
[6343] | 32 | debug-init: init
|
---|
[6314] | 33 | #Put debug.sql in database
|
---|
[6259] | 34 | @sqlite3 $(SQLDB) < debug.sql
|
---|
| 35 |
|
---|
[6424] | 36 | dbdebug:
|
---|
| 37 | #Put debug.sql in database
|
---|
| 38 | @sqlite3 $(SQLDB) < debug.sql
|
---|
| 39 |
|
---|
| 40 | dbclean:
|
---|
| 41 | # remove the database
|
---|
| 42 | @rm -r $(SQLDB)
|
---|
| 43 |
|
---|
[6343] | 44 | clean:
|
---|
| 45 | #Remove all created data, development ground, but keep downloaded files
|
---|
| 46 | @rm -f $(SQLDB)
|
---|
[6353] | 47 | @rm -Rf develop-eggs eggs parts .installed.cfg bin
|
---|
[6256] | 48 |
|
---|
[6343] | 49 | dist-clean: clean
|
---|
| 50 | #Remove all created data, development ground and downloaded files
|
---|
| 51 | @rm -Rf downloads
|
---|
| 52 |
|
---|
| 53 | test: init
|
---|
| 54 | # Testing suite
|
---|
| 55 | @./bin/test
|
---|
| 56 |
|
---|
[6434] | 57 | genesis:
|
---|
| 58 | # import data from exodus
|
---|
[6594] | 59 | @echo 'Using input file at variable PY_CONF containing the location of py.conf "$(PY_CONF)"'
|
---|
| 60 | @echo 'py.conf is generated by running "for file in CNode*/wleiden.conf '
|
---|
| 61 | @echo 'proxy*/wleiden.conf; do ./genesis-to-py.pl $$file; done > py.conf"'
|
---|
| 62 | @echo 'at genesis directory'
|
---|
| 63 | @echo 'If import fails, make sure to use a fresh database (hint: make new)'
|
---|
| 64 | @echo ''
|
---|
| 65 | @./bin/django runscript genesis_to_exodus $(PY_CONF)
|
---|
[6434] | 66 |
|
---|
[6343] | 67 | new: clean debug-init debug
|
---|
[6313] | 68 | #Fresh start, with new datebase which include debugging code
|
---|
[6314] | 69 |
|
---|
[6343] | 70 | batch: clean debug-init run
|
---|
[6319] | 71 | #Intended usage for batch runs only e.g. no debug server
|
---|
[6511] | 72 |
|
---|
| 73 | newdb:
|
---|
| 74 | #Create new empty database (used at genesis import)
|
---|
| 75 | @echo "yes" | ./bin/django reset_db ; echo "no" | ./bin/django syncdb
|
---|
| 76 |
|
---|