Makefile 995 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. # ---------- ---------- ---------- ---------- ---------- ----------
  2. #
  3. # med-data-entry
  4. #
  5. # ---------- ---------- ---------- ---------- ---------- ----------
  6. target: help
  7. .PHONY: help
  8. help:
  9. @echo "Usage: make [PHONY]"
  10. @sed -n -e '/sed/! s/\.PHONY: //p' Makefile
  11. .PHONY: all
  12. all: run
  13. .PHONY: init
  14. init:
  15. @npm install
  16. .PHONY: upgrade
  17. upgrade:
  18. vue upgrade
  19. npm audit fix
  20. @echo "Suggestion: sudo npm update -g @vue/cli"
  21. .PHONY: run
  22. run:
  23. @npm run serve
  24. .PHONY: build
  25. build:
  26. @npm run build
  27. @mkdir -p output
  28. @mkdir -p output/css
  29. @mkdir -p output/js
  30. @cp -r ./dist/css/app.*.css ./output/css/app.css
  31. @cp -r ./dist/js/app.*.js ./output/js/app.js
  32. @cp -r ./dist/js/app.*.js.map ./output/js/app.js.map
  33. @cp -r ./dist/js/chunk-vendors.*.js ./output/js/chunk-vendors.js
  34. @cp -r ./dist/js/chunk-vendors.*.js.map ./output/js/chunk-vendors.js.map
  35. @printf '\n '`git rev-parse HEAD`
  36. @printf '\n\n'
  37. .PHONY: rebuild
  38. rebuild: clean build
  39. .PHONY: clean
  40. clean:
  41. @rm -rf dist/ output/