source: trunk/Makefile@ 6319

Last change on this file since 6319 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
  • Property svn:mergeinfo set to
File size: 799 bytes
RevLine 
[6258]1SQLDB="sqllite.db"
2
[6255]3help:
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
9debug:
10#Run server in extra debugging mode
11 @./sampleserver/manage.py runserver_plus 8000 --pythonpath=`pwd`
12
13run:
14#Run server in normal power mode
15 @./sampleserver/manage.py runserver 8000 --pythonpath=`pwd`
16
[6258]17init:
[6255]18#Re-init database
[6319]19 @echo "no" | ./sampleserver/manage.py syncdb --pythonpath=`pwd`
[6255]20
[6259]21debug-init:
[6314]22#Put debug.sql in database
[6259]23 @sqlite3 $(SQLDB) < debug.sql
24
[6255]25dist-clean:
26#Remove database
[6258]27 @rm -vf $(SQLDB)
[6256]28
[6259]29new: dist-clean init debug-init debug
[6313]30#Fresh start, with new datebase which include debugging code
[6314]31
[6319]32batch: 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.