Skip to content

Commit

Permalink
correct makefile to embed version
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasmitchell committed Jun 8, 2023
1 parent 6c4fb54 commit 96d807f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ ifneq ("$(DIRTY_LINE)", "")
DIRTY := +
endif
VERSION ?= development
LDFLAGS := -X "main.Version=$(VERSION)-$(COMMIT_HASH)$(DIRTY)"
LDFLAGS := -X "github.com/doomsday-project/doomsday/version.Version=$(VERSION)-$(COMMIT_HASH)$(DIRTY)"
BUILD := go build -v -ldflags='$(LDFLAGS)' -o $(OUTPUT_NAME) $(BUILD_TARGET)

.PHONY: build server darwin darwin-amd64 darwin-arm64 linux linux-amd64 embed tsc all clean
Expand Down

0 comments on commit 96d807f

Please sign in to comment.