Makefile 377 B

123456789101112131415161718192021
  1. # mop-account-system Makefile
  2. export GOPROXY=https://goproxy.io
  3. MOD_NAME=mop-account-system
  4. BINARY_NAME=mop-account-system
  5. GOMODE_FILE=go.mod
  6. install:
  7. ifneq ($(GOMODE_FILE), $(wildcard $(GOMODE_FILE)))
  8. @go mod init $(MOD_NAME)
  9. endif
  10. @go build -o $(BINARY_NAME) -v main.go
  11. @go mod vendor
  12. .PHONY:clean
  13. clean:
  14. - rm $(BINARY_NAME)
  15. - rm go.mod
  16. - rm go.sum
  17. - rm -rf vendor