SHELL := /bin/bash # if a virtualenv is used put the full python path # e.g.: PYTHON=$$HOME/.virtualenvs/chimere/bin/python3 PYTHON=python3 update: clean syncdb compilemessages collectstatic clean: -rm -rf *~* -find . -name '*.pyc' -exec rm {} \; -find . -name '.*.swp' -exec rm {} \; test: clean $(PYTHON) manage.py test chimere test_gitlab: $(PYTHON) manage.py test chimere pep8: pep8 --filename=*.py --ignore=W --exclude="manage.py,settings.py,migrations" --statistics --repeat . 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: $(PYTHON) ./manage.py syncdb --noinput 2> /dev/null > /dev/null $(PYTHON) ./manage.py migrate chimere 2> /dev/null > /dev/null syncdb: $(PYTHON) manage.py syncdb --noinput $(PYTHON) manage.py migrate shell: $(PYTHON) manage.py shell run: $(PYTHON) manage.py runserver 0.0.0.0:8000 compilemessages: cd $(CURDIR)/chimere; \ $(PYTHON) ../manage.py compilemessages collectstatic: cd $(CURDIR)/chimere; \ $(PYTHON) ../manage.py collectstatic --noinput