Makefile 920 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. app_name=updatenotification
  2. project_dir=$(CURDIR)/../$(app_name)
  3. build_dir=$(CURDIR)/build
  4. source_dir=$(build_dir)/$(app_name)
  5. sign_dir=$(build_dir)/sign
  6. all: package
  7. dev-setup: clean npm-update build-js
  8. npm-update:
  9. rm -rf node_modules
  10. npm update
  11. build-js:
  12. npm run dev
  13. build-js-production:
  14. npm run build
  15. clean:
  16. rm -rf $(build_dir)
  17. package: clean build-js-production
  18. mkdir -p $(source_dir)
  19. rsync -a \
  20. --exclude=/build \
  21. --exclude=/docs \
  22. --exclude=/js-src \
  23. --exclude=/l10n/.tx \
  24. --exclude=/tests \
  25. --exclude=/.git \
  26. --exclude=/.github \
  27. --exclude=/CONTRIBUTING.md \
  28. --exclude=/issue_template.md \
  29. --exclude=/README.md \
  30. --exclude=/.gitignore \
  31. --exclude=/.scrutinizer.yml \
  32. --exclude=/.travis.yml \
  33. --exclude=/.drone.yml \
  34. --exclude=/node_modules \
  35. --exclude=/npm-debug.log \
  36. --exclude=/package.json \
  37. --exclude=/package-lock.json \
  38. --exclude=/Makefile \
  39. $(project_dir)/ $(source_dir)