Makefile 878 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. all: DIST/flowserver DIST/web
  2. clean:
  3. rm -rf DIST
  4. DIST:
  5. mkdir -p DIST
  6. DIST/flowserver: DIST
  7. cd go;make
  8. cp go/DIST/* DIST/
  9. browser/vue-flow/node_modules:
  10. cd browser/vue-flow; yarn
  11. DIST/web: DIST browser/vue-flow/node_modules
  12. mkdir -p DIST/web
  13. cd browser/vue-flow;yarn build
  14. cp -r browser/vue-flow/dist/* DIST/web
  15. DIST/.dockerized: DIST/flowserver DIST/web
  16. docker build --rm -t hexasoftware.com:5000/flow-proto -f ./docker/Dockerfile .
  17. touch DIST/.dockerized
  18. docker: DIST/.dockerized
  19. push: DIST/.dockerized
  20. docker push hexasoftware.com:5000/flow-proto
  21. frontend: DIST/web
  22. backend: DIST/flowserver
  23. dev: clean backend
  24. tmux split "DEBUG=1 DIST/flowserver;$$SHELL"
  25. cd browser/vue-flow; yarn dev
  26. builder:
  27. git add -A .
  28. git commit -m "Droning building $$(date)"
  29. git push builder master
  30. test:
  31. make -C go test
  32. .PHONY: all clean frontend backend builder