добавил south в makefile

remotes/origin/1203
Slava 10 years ago
parent 46226f0ca7
commit c5e718976a
  1. 13
      Makefile

@ -1,4 +1,4 @@
.PHONY: requirements requirements-upgrade freeze syncdb run run-public makemessages compilemessages collectstatic cloc clean user .PHONY: requirements requirements-upgrade freeze syncdb run run-public makemessages compilemessages collectstatic cloc clean user south
project_name=proj project_name=proj
@ -37,6 +37,17 @@ collectstatic:
user: user:
-@ipython manage.py createsuperuser -@ipython manage.py createsuperuser
# If the first argument is "south"...
ifeq (south,$(firstword $(MAKECMDGOALS)))
# use the rest as arguments for "south"
RUN_ARGS := $(wordlist 2,$(words $(MAKECMDGOALS)),$(MAKECMDGOALS))
# ...and turn them into do-nothing targets
$(eval $(RUN_ARGS):;@:)
endif
south:
-@python manage.py schemamigration $(RUN_ARGS) --auto
-@python manage.py migrate $(RUN_ARGS)
cloc: cloc:
-@echo "### Counting lines of code within the project" -@echo "### Counting lines of code within the project"
-@echo "# Total:" ; find . -iregex '.*\.py\|.*\.js\|.*\.html\|.*\.css' -type f -exec cat {} + | wc -l -@echo "# Total:" ; find . -iregex '.*\.py\|.*\.js\|.*\.html\|.*\.css' -type f -exec cat {} + | wc -l

Loading…
Cancel
Save