Makefile 579 B

12345678910111213141516171819202122232425262728293031323334353637
  1. all: backend frontend
  2. docker:
  3. docker build --rm -t hexasoftware.com:5000/myapp .
  4. deploy: docker
  5. docker push hexasoftware.com:5000/myapp
  6. backend: distpath
  7. @echo "Building backend... "
  8. make -C backend
  9. frontend: distpath
  10. @echo "Building frontend..."
  11. @cd frontend/web;node build/build.js
  12. test: backend #Front end has dev server
  13. make -C backend test
  14. cd frontend/web; npm run dev
  15. distpath:
  16. @mkdir -p DIST/bin
  17. @mkdir -p DIST/public
  18. deps:
  19. make -C backend deps
  20. @cd frontend/web;npm i
  21. clean:
  22. @rm -rf DIST
  23. .PHONY: all test clean backend frontend docker clean