Skip to content

Commit

Permalink
生成结构变动
Browse files Browse the repository at this point in the history
  • Loading branch information
liesauer committed Jul 25, 2019
1 parent b0af124 commit dbdc34a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ __MACOSX
[Bb]in/
[Oo]bj/
[Rr]elease/
tools/

# sublime
*.sublime-workspace
Expand Down
22 changes: 11 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
OUTPUT=bin
BINARY_LINUX=linux/ncbeauty
BINARY_WIN=win/ncbeauty.exe
BINARY_MAC=osx/ncbeauty
OUTPUT=tools
BINARY_LINUX_X64=linux-x64/ncbeauty
BINARY_WIN_X64=win-x64/ncbeauty.exe
BINARY_MAC_X64=osx-x64/ncbeauty
BUILD_FLAGS=-ldflags="-s -w"

build-all: build-win build-linux build-mac
build-all: build-win-x64 build-linux-x64 build-osx-x64

build-win:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_WIN) ./src/main/beauty.go
build-win-x64:
CGO_ENABLED=0 GOOS=windows GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_WIN_X64) ./src/main/beauty.go

build-linux:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_LINUX) ./src/main/beauty.go
build-linux-x64:
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_LINUX_X64) ./src/main/beauty.go

build-mac:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_MAC) ./src/main/beauty.go
build-osx-x64:
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build $(BUILD_FLAGS) -o ./$(OUTPUT)/$(BINARY_MAC_X64) ./src/main/beauty.go

0 comments on commit dbdc34a

Please sign in to comment.