summaryrefslogtreecommitdiff
path: root/Makefile.example
blob: 8932731847222654fd52304a3a0281f436c34ed0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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