Makefile.boiler 524 B

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