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.

42 lines
1.4 KiB

  1. diff -rupN seafile-seahub-6.2.2.orig/Makefile seafile-seahub-6.2.2/Makefile
  2. --- seafile-seahub-6.2.2.orig/Makefile 2017-10-22 22:28:22.000000000 +0200
  3. +++ seafile-seahub-6.2.2/Makefile 2017-10-22 22:46:18.007470936 +0200
  4. @@ -1,3 +1,6 @@
  5. +include $(TOPDIR)/rules.mk
  6. +include $(TOPDIR)/feeds/packages/lang/python/python-package.mk
  7. +
  8. PROJECT=seahub
  9. develop: setup-git
  10. @@ -9,7 +12,9 @@ dist: locale uglify statici18n collectst
  11. locale:
  12. @echo "--> Compile locales"
  13. - django-admin.py compilemessages && cd seahub/two_factor && django-admin.py compilemessages
  14. + $(call HostPython,,$(STAGING_DIR)/usr/bin/django-admin.py compilemessages)
  15. + cd seahub/two_factor
  16. + $(call HostPython,,$(STAGING_DIR)/usr/bin/django-admin.py compilemessages)
  17. @echo ""
  18. uglify:
  19. @@ -19,17 +24,17 @@ uglify:
  20. statici18n:
  21. @echo "--> Generate JS locale files in static/scripts/i18n"
  22. - python manage.py compilejsi18n
  23. + $(call HostPython,,manage.py compilejsi18n)
  24. collectstatic:
  25. @echo "--> Collect django static files to media/assets"
  26. rm -rf media/assets 2> /dev/null
  27. - python manage.py collectstatic --noinput
  28. + $(call HostPython,,manage.py collectstatic --noinput)
  29. compressstatic:
  30. @echo "--> Compress static files(css) to media/CACHE"
  31. rm -rf media/CACHE 2> /dev/null
  32. - python manage.py compress
  33. + $(call HostPython,,manage.py compress)
  34. clean:
  35. @echo '--> Cleaning media/static cache & dist'