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.1 KiB

  1. --- a/Makefile
  2. +++ b/Makefile
  3. @@ -1,3 +1,6 @@
  4. +include $(TOPDIR)/rules.mk
  5. +include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
  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. + $(call HostPython,,$(STAGING_DIR)/usr/bin/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. + $(call HostPython,,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. + $(call HostPython,,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. + $(call HostPython,,manage.py compress)
  31. clean:
  32. @echo '--> Cleaning media/static cache & dist'