Created
September 18, 2018 06:38
-
-
Save xialeistudio/413ed4be20cf686a4de466049006a8eb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
.PHONY: build clean lint help | |
all: build deploy | |
build: | |
GOOS=linux GOARCH=amd64 go build -v -o ./bin/phonebook-backend-d . | |
upx ./bin/phonebook-backend-d | |
deploy: | |
git commit -am "release" | |
git push | |
lint: | |
golint ./... | |
clean: | |
rm -rf ./bin/phonebook-backend-d | |
go clean -i . | |
help: | |
@echo "make: 编译程序" | |
@echo "make lint: 检查代码风格" | |
@echo "make clean: 清空二进制文件及缓存文件" | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment