Makefile 839 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. all: DIST/demo1 DIST/web
  2. clean:
  3. rm -rf DIST
  4. DIST:
  5. mkdir -p DIST
  6. DIST/demo1: DIST
  7. cd go;make
  8. cp go/DIST/* DIST/
  9. flow-ui/node_modules:
  10. cd flow-ui; yarn
  11. DIST/web: DIST flow-ui/node_modules
  12. mkdir -p DIST/web
  13. cd flow-ui;yarn build
  14. cp -r flow-ui/dist/* DIST/web
  15. DIST/.dockerized: DIST/demo1 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/demo1
  23. dev: clean backend
  24. tmux split "DEBUG=1 DIST/demo1;$$SHELL"
  25. cd flow-ui; 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. generate:
  33. make -C go generate
  34. .PHONY: all clean frontend backend builder generate