Makefile 678 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. all: DIST/demo1
  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. flow-ui/dist: flow-ui/node_modules
  12. cd flow-ui;yarn build
  13. backend: DIST/demo1
  14. frontend: flow-ui/dist
  15. dev: clean backend
  16. tmux split "DEBUG=1 DIST/demo1;$$SHELL"
  17. cd flow-ui; yarn dev
  18. test:
  19. make -C go test
  20. # need flow-ui
  21. generate:
  22. make -C go generate
  23. update-ui: frontend
  24. # Needs folder2go tool
  25. go get github.com/gohxs/folder2go
  26. folder2go -nobackup flow-ui/dist flowuiassets go/src/github.com/hexasoftware/flow/flowserver/flowuiassets
  27. .PHONY: all clean frontend backend builder generate DIST/demo1 update-ui