1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 11:01:14 +00:00
seahub/Makefile

42 lines
1004 B
Makefile
Raw Normal View History

PROJECT=seahub
develop: setup-git
setup-git:
cd .git/hooks && ln -sf ../../hooks/* ./
2015-04-22 04:08:19 +00:00
dist: locale uglify statici18n collectstatic
2015-04-14 09:17:05 +00:00
locale:
@echo "--> Compile locales"
django-admin.py compilemessages
@echo ""
uglify:
2015-04-10 03:01:39 +00:00
@echo "--> Uglify JS files to static/scripts/dist"
rm -rf static/scripts/dist 2> /dev/null
r.js -o static/scripts/build.js
2015-04-14 09:17:05 +00:00
statici18n:
@echo "--> Generate JS locale files in static/scripts/i18n"
python manage.py compilejsi18n
collectstatic:
2015-04-10 03:01:39 +00:00
@echo "--> Collect django static files to media/assets"
rm -rf media/assets 2> /dev/null
python manage.py collectstatic --noinput
2015-04-10 03:01:39 +00:00
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 ""
2015-04-14 09:17:05 +00:00
.PHONY: develop setup-git dist locale uglify statici18n collectstatic compressstatic clean