forked from haiwen/seahub
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
46 lines (35 loc) · 1.1 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
44
45
46
PROJECT=seahub
develop: setup-git
setup-git:
cd .git/hooks && ln -sf ../../hooks/* ./
dist: locale uglify statici18n collectstatic
locale:
@echo "--> Compile locales"
django-admin.py compilemessages
@echo ""
uglify:
@echo "--> Uglify JS files to static/scripts/dist"
rm -rf static/scripts/dist 2> /dev/null
r.js -o static/scripts/build.js
statici18n:
@echo "--> Generate JS locale files in static/scripts/i18n"
python manage.py compilejsi18n
collectstatic:
@echo "--> Collect django static files to media/assets"
rm -rf media/assets 2> /dev/null
python manage.py collectstatic --noinput -i admin -i termsandconditions
compressstatic:
@echo "--> Compress static files(css) to media/CACHE"
rm -rf media/CACHE 2> /dev/null
python manage.py compress
clean:
@echo '--> Cleaning media/static cache & dist'
rm -rf media/CACHE 2> /dev/null
rm -rf media/assets 2> /dev/null
rm -rf static/scripts/dist 2> /dev/null
@echo ""
cleanpyc:
@echo '--> Cleaning .pyc files'
find . -name \*.pyc -exec rm -f {} \;
@echo ""
.PHONY: develop setup-git dist locale uglify statici18n collectstatic compressstatic clean