Makefile 652 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. all: DIST/demo1
  2. clean:
  3. rm -rf DIST
  4. DIST:
  5. mkdir -p DIST
  6. DIST/demo1: DIST update-ui
  7. cd go;make
  8. cp go/DIST/* DIST/
  9. backend: DIST/demo1
  10. flow-ui/node_modules:
  11. cd flow-ui; yarn
  12. frontend: flow-ui/dist
  13. cd flow-ui;yarn build
  14. dev: clean backend
  15. tmux split "DEBUG=1 DIST/demo1;$$SHELL"
  16. cd flow-ui; yarn dev
  17. test:
  18. make -C go test
  19. # need flow-ui
  20. generate:
  21. make -C go generate
  22. update-ui: frontend
  23. # Needs folder2go tool
  24. go get github.com/gohxs/folder2go
  25. folder2go -nobackup flow-ui/dist flowuiassets go/src/github.com/hexasoftware/flow/flowserver/flowuiassets
  26. .PHONY: all clean frontend backend builder generate DIST/demo1 update-ui