Skip to content

Commit

Permalink
remove -i build flags
Browse files Browse the repository at this point in the history
  • Loading branch information
rmb938 committed Jun 26, 2018
1 parent 9fe5811 commit 3096b10
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,27 +19,26 @@ fmt: ## run go fmt

build: ## build the go packages
@echo "Running $@"
@go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY} .
@go build -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY} .
cp bin/${BINARY} ~/.terraform.d/plugins/${BINARY}

build-linux: ## build the go packages for Linux
@echo "Running $@"
@GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_linux_amd64 .
@GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_linux_amd64 .

build-osx: ## build the go packages for OSX
@echo "Running $@"
@GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_darwin_amd64 .
@GOOS=darwin GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_darwin_amd64 .

build-windows: ## build the go packages for Windows
@echo "Running $@"
@GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -i -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_windows_amd64.exe .
@GOOS=windows GOARCH=amd64 CGO_ENABLED=0 go build -ldflags "-X main.Version=${VERSION}" -o bin/${BINARY}_windows_amd64.exe .

localvendor:
@rm -rf vendor/github.com/sandwichcloud/deli-cli
@cp -r $$GOPATH/src/github.com/sandwichcloud/deli-cli vendor/github.com/sandwichcloud/deli-cli
@ rm -rf vendor/github.com/sandwichcloud/deli-cli/vendor


test: ## run test
@echo "Running $@"
@go test ${PACKAGES}
Expand Down

0 comments on commit 3096b10

Please sign in to comment.