Makefile 715 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. 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. builder:
  18. git add -A .
  19. git commit -m "Droning building $$(date)"
  20. git push builder master
  21. test:
  22. make -C go test
  23. # need flow-ui
  24. generate:
  25. make -C go generate
  26. update-ui: frontend
  27. # Needs folder2go tool
  28. go get github.com/gohxs/folder2go
  29. folder2go -nobackup flow-ui/dist flowuiassets go/src/github.com/hexasoftware/flow/flowserver/flowuiassets
  30. .PHONY: all clean frontend backend builder generate