更新 Makefile
add -u flag
This commit is contained in:
parent
679ddba2d8
commit
7dd5b44ab6
6
Makefile
6
Makefile
@ -10,8 +10,8 @@
|
||||
|
||||
# make build-start-mac 编译+启动
|
||||
init:
|
||||
go get gopkg.in/yaml.v2
|
||||
go get gopkg.in/fsnotify/fsnotify.v1
|
||||
go get -u gopkg.in/yaml.v2
|
||||
go get -u gopkg.in/fsnotify/fsnotify.v1
|
||||
|
||||
build-mac: ;@echo "编译-mac版";
|
||||
CGO_ENABLED=0 GOARCH=amd64 GOOS=darwin go build -ldflags "-s -w" -o ./bin/fileboy-darwin-amd64.bin
|
||||
@ -42,4 +42,4 @@ start-win: ;@echo "启动服务";
|
||||
|
||||
build-start-mac: build-mac start-mac
|
||||
|
||||
.PHONY: build-mac build-linux build-win build-all start-linux travis-linux start-mac start-win build-start-mac
|
||||
.PHONY: build-mac build-linux build-win build-all start-linux travis-linux start-mac start-win build-start-mac
|
||||
|
Loading…
Reference in New Issue
Block a user