1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 14:42:10 +00:00
Files
seahub/Makefile

42 lines
976 B
Makefile
Raw Normal View History

PROJECT=seahub
develop: setup-git
setup-git:
cd .git/hooks && ln -sf ../../hooks/* ./
dist: locale statici18n collectstatic
2015-04-14 17:17:05 +08:00
locale:
@echo "--> Compile locales"
2021-09-23 18:24:34 +08:00
django-admin compilemessages
2015-04-14 17:17:05 +08:00
@echo ""
2015-04-14 17:17:05 +08:00
statici18n:
@echo "--> Generate JS locale files in static/scripts/i18n"
python manage.py compilejsi18n
collectstatic:
2015-04-10 11:01:39 +08: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
2015-04-10 11:01:39 +08: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 17:17:05 +08:00
2015-11-10 12:02:47 +08:00
cleanpyc:
@echo '--> Cleaning .pyc files'
find . -name \*.pyc -exec rm -f {} \;
@echo ""
.PHONY: develop setup-git dist locale statici18n collectstatic compressstatic clean