Last change
on this file since 6329 was 6319, checked in by RIck van der Zwet, 16 years ago |
- Makefile: Allow calling batch to make automatic re-inet and reload on -for example- subversion changes possible
|
File size:
799 bytes
|
Line | |
---|
1 | SQLDB="sqllite.db"
|
---|
2 |
|
---|
3 | help:
|
---|
4 | #Usage
|
---|
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'
|
---|
8 |
|
---|
9 | debug:
|
---|
10 | #Run server in extra debugging mode
|
---|
11 | @./sampleserver/manage.py runserver_plus 8000 --pythonpath=`pwd`
|
---|
12 |
|
---|
13 | run:
|
---|
14 | #Run server in normal power mode
|
---|
15 | @./sampleserver/manage.py runserver 8000 --pythonpath=`pwd`
|
---|
16 |
|
---|
17 | init:
|
---|
18 | #Re-init database
|
---|
19 | @echo "no" | ./sampleserver/manage.py syncdb --pythonpath=`pwd`
|
---|
20 |
|
---|
21 | debug-init:
|
---|
22 | #Put debug.sql in database
|
---|
23 | @sqlite3 $(SQLDB) < debug.sql
|
---|
24 |
|
---|
25 | dist-clean:
|
---|
26 | #Remove database
|
---|
27 | @rm -vf $(SQLDB)
|
---|
28 |
|
---|
29 | new: dist-clean init debug-init debug
|
---|
30 | #Fresh start, with new datebase which include debugging code
|
---|
31 |
|
---|
32 | batch: dist-clean init debug-init run
|
---|
33 | #Intended usage for batch runs only e.g. no debug server
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.