Skip to content
Snippets Groups Projects
Commit a6f640ae authored by Florent Gluck's avatar Florent Gluck
Browse files

Makefile: fixed commit and date embedding into source file at compile time

parent a9de6649
Branches
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
# ------------------------------------
CURRENT_DATE=$(shell eval "date -u +'%Y-%m-%d at %H:%M:%S'")
GIT_COMMIT=$(shell eval "git rev-parse HEAD")
BUILD_FLAGS=-ldflags="-X 'nexus-common/buildversion.buildDate=$(CURRENT_DATE)' -X 'nexus-common/buildversion.gitCommit=$(GIT_COMMIT)'"
BUILD_FLAGS=-ldflags="-X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/common/buildversion.buildDate=$(CURRENT_DATE)' -X 'gitedu.hesge.ch/flg_projects/nexus_vdi/nexus/common/buildversion.gitCommit=$(GIT_COMMIT)'"
BUILD_DIR=build
BUILD_DIR_ABS=$(PWD)/$(BUILD_DIR)
SERVER_BINARY=nexus-server
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment