Makefile.boiler 506 B

12345678910111213141516171819202122232425262728293031323334353637
  1. all: DIST/{{.binary}}
  2. clean:
  3. rm -rf DIST
  4. DIST:
  5. mkdir -p DIST
  6. DIST/{{.binary}}: DIST
  7. cd go;make
  8. cp go/DIST/* DIST/
  9. frontend/node_modules:
  10. cd frontend; yarn
  11. frontend/dist: flow-ui/node_modules
  12. cd frontend; yarn build
  13. backend: DIST/{{.binary}}
  14. frontend: {{.frontend}}/dist
  15. dev: clean backend
  16. tmux split "DEBUG=1 DIST/{{.binary}};$$SHELL"
  17. cd frontend; yarn dev
  18. test:
  19. make -C go test
  20. generate:
  21. make -C go generate
  22. .PHONY: all clean frontend backend builder generate DIST/{{.binary}}