1 MANAGE_PY
= python manage.py
3 APPS
= $(shell find
$(ROOT_DIR
) -name
'models.py' | sed
's,/models.py$$,,; s:.*/::')
6 # In order to help newcomers, this variable holds a full doc of the current Makefile.
7 # Please keep it up to date with regard to new commands.
10 # - Group commands in sections
11 # - Align command descriptions
16 Available targets are
:
19 run
: Start a development server on http
://127.0.0.1:8000/
20 shell: Open a development Python
shell using the current database
23 resetdb
: Reinitialize the database schema
26 test: Run the
test suite
29 clean: Cleanup
all temporary files
(*.pyc
, ...
)
30 doc
: Generate the documentation
31 help
: Display this help message
41 @echo
-n
"" # Don't display extra lines.
45 .PHONY
: all default help
52 $(MANAGE_PY
) runserver
65 $(MANAGE_PY
) test $(APPS
)
69 $(MANAGE_PY
) syncdb
--noinput
77 find .
"(" -name
"*.pyc" -or
-name
"*.pyo" -or
-name
"*.mo" ")" -delete
78 find .
-type d
-empty
-delete