Makefile 545 B

123456789101112131415161718
  1. # Makefile
  2. APP=goNc
  3. db:
  4. go run cmd/app/main.go dbUp
  5. linux:
  6. GOOS=linux GOARCH=amd64 go build -o releases/${APP} ./cmd/app/main.go
  7. linuxArm:
  8. GOOS=linux GOARCH=arm64 go build -o releases/${APP} ./cmd/app/main.go
  9. windows:
  10. GOOS=windows GOARCH=amd64 go build -o releases/${APP}.exe ./cmd/app/main.go
  11. windows32:
  12. GOOS=windows GOARCH=386 go build -o releases/${APP}.exe ./cmd/app/main.go
  13. mac:
  14. GOOS=darwin GOARCH=amd64 go build -o releases/${APP} ./cmd/app/main.go
  15. clear:
  16. rm -f goviewpro_mac goviewpro_linux releases/${APP}.exe ./cmd/app/main.go