1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 19:05:16 +00:00
seahub/Makefile

47 lines
1.1 KiB
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"
2017-11-14 08:49:01 +00:00
django-admin.py compilemessages
2015-04-14 09:17:05 +00:00
@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 -i admin -i termsandconditions -i app -i sysadmin-app -i build.js
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
2015-11-10 04:02:47 +00:00
cleanpyc:
@echo '--> Cleaning .pyc files'
find . -name \*.pyc -exec rm -f {} \;
@echo ""
2015-04-14 09:17:05 +00:00
.PHONY: develop setup-git dist locale uglify statici18n collectstatic compressstatic clean