diff --git a/Makefile b/Makefile index 5efde1b..b9594c0 100644 --- a/Makefile +++ b/Makefile @@ -39,10 +39,6 @@ VERSION = $(shell git describe --tags) BUILD_TIME = $(shell date -u +"%Y-%m-%dT%H:%M:%SZ") COMMIT_HASH = $(shell git submodule status | grep $(GO_SRC_PATH)/$(@F) | awk '{print $$(1)}' | cut -c1-8) COMMIT_TIME = $(shell cd $(GO_SRC_PATH) && git log --pretty="%ai" -1 | awk '{time=$$(1)"T"$$(2)"Z"; print time}') -LDFLAGS = -X github.com/free5gc/version.VERSION=$(VERSION) \ - -X github.com/free5gc/version.BUILD_TIME=$(BUILD_TIME) \ - -X github.com/free5gc/version.COMMIT_HASH=$(COMMIT_HASH) \ - -X github.com/free5gc/version.COMMIT_TIME=$(COMMIT_TIME) .PHONY: $(NF) clean docker-build docker-push @@ -58,7 +54,7 @@ $(GO_BIN_PATH)/%: %.go $(NF_GO_FILES) # $(@F): The file-within-directory part of the file name of the target. @echo "Start building $(@F)...." cd $(GO_SRC_PATH)/ && \ - CGO_ENABLED=0 go build -ldflags "$(LDFLAGS)" -o $(ROOT_PATH)/$@ $(@F).go + CGO_ENABLED=0 go build -o $(ROOT_PATH)/$@ $(@F).go .coverage: rm -rf $(CURDIR)/.coverage