diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-11-18 16:18:41 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-11-18 16:18:41 +0100 |
commit | 43fb49a72c5a81625ecc04a3372c03a8c02c7b4b (patch) | |
tree | d45c33e67793762dbfb8132ac1f6a2fa95ed7c40 | |
parent | 98387a5edf81602242f64bbc1ce018f1f529ec5f (diff) | |
download | Chimère-43fb49a72c5a81625ecc04a3372c03a8c02c7b4b.tar.bz2 Chimère-43fb49a72c5a81625ecc04a3372c03a8c02c7b4b.zip |
Fix Makefile template with the new code organization
-rw-r--r-- | Makefile.example | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/Makefile.example b/Makefile.example index 4ac65cb..2084320 100644 --- a/Makefile.example +++ b/Makefile.example @@ -3,8 +3,6 @@ SHELL := /bin/bash # if a virtualenv is used put the full python path # e.g.: PYTHON=$$HOME/.virtualenvs/chimere/bin/python PYTHON=python -# put name of your current project -project=chimere_example_project update: clean syncdb compilemessages collectstatic @@ -14,10 +12,10 @@ clean: -find . -name '.*.swp' -exec rm {} \; test: clean - cd $(project); $(PYTHON) manage.py test chimere + $(PYTHON) manage.py test chimere test_gitlab: - cd $(project); $(PYTHON) manage.py test chimere + $(PYTHON) manage.py test chimere pep8: pep8 --filename=*.py --ignore=W --exclude="manage.py,settings.py,migrations" --statistics --repeat . @@ -26,23 +24,23 @@ pylint: pylint "$(CURDIR)/chimere" --ignore=.git,migrations --max-public-methods=50 --ignored-classes=Item.Meta --method-rgx='[a-z_][a-z0-9_]{2,40}$$' fresh_syncdb: - cd $(project); $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null - cd $(project); $(PYTHON) ./manage.py migrate chimere 2> /dev/null > /dev/null + $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null + $(PYTHON) ./manage.py migrate chimere 2> /dev/null > /dev/null syncdb: - cd $(project); $(PYTHON) manage.py syncdb --noinput - cd $(project); $(PYTHON) manage.py migrate + $(PYTHON) manage.py syncdb --noinput + $(PYTHON) manage.py migrate shell: - cd $(project);$(PYTHON) manage.py shell + $(PYTHON) manage.py shell run: - cd $(project); $(PYTHON) manage.py runserver 0.0.0.0:8000 + $(PYTHON) manage.py runserver 0.0.0.0:8000 compilemessages: cd $(CURDIR)/chimere; \ - $(PYTHON) ../$(project)/manage.py compilemessages + $(PYTHON) ../manage.py compilemessages collectstatic: cd $(CURDIR)/chimere; \ - $(PYTHON) ../$(project)/manage.py collectstatic --noinput + $(PYTHON) ../manage.py collectstatic --noinput |