You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -1,3 +1,6 @@
  4. +PYTHON ?= python
  5. +DJANGO_ADMIN_PY ?= django-admin.py
  6. +
  7. PROJECT=seahub
  8. develop: setup-git
  9. @@ -9,7 +12,7 @@ dist: locale uglify statici18n collectstatic
  10. locale:
  11. @echo "--> Compile locales"
  12. - django-admin.py compilemessages
  13. + $(DJANGO_ADMIN_PY) compilemessages
  14. @echo ""
  15. uglify:
  16. @@ -19,17 +22,17 @@ uglify:
  17. statici18n:
  18. @echo "--> Generate JS locale files in static/scripts/i18n"
  19. - python manage.py compilejsi18n
  20. + $(PYTHON) manage.py compilejsi18n
  21. collectstatic:
  22. @echo "--> Collect django static files to media/assets"
  23. rm -rf media/assets 2> /dev/null
  24. - python manage.py collectstatic --noinput -i admin -i termsandconditions -i app -i sysadmin-app -i build.js
  25. + $(PYTHON) manage.py collectstatic --noinput -i admin -i termsandconditions -i app -i sysadmin-app -i build.js
  26. compressstatic:
  27. @echo "--> Compress static files(css) to media/CACHE"
  28. rm -rf media/CACHE 2> /dev/null
  29. - python manage.py compress
  30. + $(PYTHON) manage.py compress
  31. clean:
  32. @echo '--> Cleaning media/static cache & dist'