source: branches/exodus-roland/Makefile

Last change on this file was 6411, checked in by roland, 16 years ago

A check in with some addons, still code in progress.
Some niceties in admin.

File size: 1.2 KB
RevLine 
[6353]1SQLDB="exodus/exodus.db"
[6258]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
[6343]9init: ./bin/buildout
10#Setup environment database
11 @./bin/buildout
12 @echo "no" | ./bin/django syncdb
13
14./bin/buildout:
15#Setup environment database - part creation
16 @python bootstrap.py
17
18
19debug: init
[6255]20#Run server in extra debugging mode
[6340]21 @./bin/django runserver_plus
[6255]22
[6343]23run: init
[6255]24#Run server in normal power mode
[6340]25 @./bin/django runserver
[6255]26
27
[6343]28debug-init: init
[6314]29#Put debug.sql in database
[6259]30 @sqlite3 $(SQLDB) < debug.sql
31
[6411]32dbdebug:
33#Put debug.sql in database
34 @sqlite3 $(SQLDB) < debug.sql
35
36dbclean:
37# remove the database
38 @rm -r $(SQLDB)
39
[6343]40clean:
41#Remove all created data, development ground, but keep downloaded files
42 @rm -f $(SQLDB)
[6353]43 @rm -Rf develop-eggs eggs parts .installed.cfg bin
[6256]44
[6343]45dist-clean: clean
46#Remove all created data, development ground and downloaded files
47 @rm -Rf downloads
48
49test: init
50# Testing suite
51 @./bin/test
52
53new: clean debug-init debug
[6313]54#Fresh start, with new datebase which include debugging code
[6314]55
[6343]56batch: clean debug-init run
[6319]57#Intended usage for batch runs only e.g. no debug server
Note: See TracBrowser for help on using the repository browser.