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.

36 lines
955 B

  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,22 +12,22 @@ dist: locale statici18n collectstatic
  10. locale:
  11. @echo "--> Compile locales"
  12. - django-admin.py compilemessages
  13. + $(DJANGO_ADMIN_PY) compilemessages
  14. @echo ""
  15. statici18n:
  16. @echo "--> Generate JS locale files in static/scripts/i18n"
  17. - python manage.py compilejsi18n
  18. + $(PYTHON) manage.py compilejsi18n
  19. collectstatic:
  20. @echo "--> Collect django static files to media/assets"
  21. rm -rf media/assets 2> /dev/null
  22. - python manage.py collectstatic --noinput -i admin -i termsandconditions
  23. + $(PYTHON) manage.py collectstatic --noinput -i admin -i termsandconditions
  24. compressstatic:
  25. @echo "--> Compress static files(css) to media/CACHE"
  26. rm -rf media/CACHE 2> /dev/null
  27. - python manage.py compress
  28. + $(PYTHON) manage.py compress
  29. clean:
  30. @echo '--> Cleaning media/static cache & dist'