github.com/hazelops/ize@v1.1.12-0.20230915191306-97d7c0e48f11/Makefile (about) 1 GIT_COMMIT=$$(git rev-parse --short HEAD) 2 GIT_IMPORT="github.com/hazelops/ize/internal/version" 3 GIT_DIRTY=$$(test -n "`git status --porcelain`" && echo "+CHANGES" || true) 4 GOLDFLAGS="-s -w -X $(GIT_IMPORT).GitCommit=$(GIT_COMMIT)$(GIT_DIRTY)" 5 CGO_ENABLED?=0 6 7 .PHONY: install 8 install: bin 9 mv ./ize $(GOPATH)/bin/ize 10 11 .PHONY: bin 12 bin: 13 CGO_ENABLED=$(CGO_ENABLED) go build -tags=viper_toml1 -ldflags $(GOLDFLAGS) -o ./ize ./cmd