-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
46 lines (32 loc) · 1.13 KB
/
Makefile
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
BASE = ./snapmerge
SETTINGS = config.settings_local
.PHONY: run startapp makemigrations migrate test
crun:
npm install && python $(BASE)/manage.py compress --settings=$(SETTINGS) ; python $(BASE)/manage.py runserver --settings=$(SETTINGS)
run:
python $(BASE)/manage.py runserver --settings=$(SETTINGS)
startapp:
python $(BASE)/manage.py startapp $(APPNAME)
makemigrations:
python $(BASE)/manage.py makemigrations --settings=$(SETTINGS)
migrate:
python $(BASE)/manage.py migrate --settings=$(SETTINGS)
test:
python $(BASE)/manage.py test $(APPNAME) --settings=$(SETTINGS)
translation_DE:
python $(BASE)/manage.py makemessages -l de --settings=$(SETTINGS)
compile_translations:
python $(BASE)/manage.py compilemessages --settings=$(SETTINGS)
shell:
python $(BASE)/manage.py shell --settings=$(SETTINGS)
compress:
npm install && python $(BASE)/manage.py compress --settings=$(SETTINGS)
#for tracking time spend on project :)
CFLAGS = -g -std=c11 -pedantic -Wall -Werror -D_XOPEN_SOURCE=700
CC = gcc
time: time.o
$(CC) $(CFLAGS) -o time time_track.o
time.o:
$(CC) $(CFLAGS) -c time_track.c
clear:
rm -f time time_track.o .tmp.time