SHELL := /bin/bash PYTHON=python3 help: # Actions available: # * clean: remove temporary files # * compilemessages: compile messages to be translated # * makemessages: create messages to be translated # * run: run local test server (port 9000) # * sass: compile scss file # * shell: launch a python shell with project context preloaded # * soft_test: launch tests without db reinitialization # * test: launch tests clean: -rm -rf *~* -find . -name '*.pyc' -exec rm {} \; -find . -name '.*.swp' -exec rm {} \; -find . -name '__pycache__' -exec rm -rf {} \; 2> /dev/null -rm -rf dist ishtar.egg-info test: clean $(PYTHON) manage.py test soft_test: clean $(PYTHON) manage.py test -k migrations: $(PYTHON) manage.py makemigrations migrate: $(PYTHON) manage.py migrate shell: $(PYTHON) manage.py shell run: $(PYTHON) manage.py runserver 0.0.0.0:9000 sass: ./node_modules/node-sass/bin/node-sass scss/ishtar_public.scss --output-style compressed > ishtar_public/static/css/ishtar_public.css makemessages: $(PYTHON) manage.py makemessages compilemessages: $(PYTHON) manage.py compilemessages