Skip to content

Commit

Permalink
modify makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
skyargos committed Jan 23, 2025
1 parent 22e0dd5 commit a8155a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ COMMIT := $(shell git log -1 --format='%H')

# don't override user values
ifeq (,$(VERSION))
VERSION := $(shell git describe --exact-match 2>/dev/null)
VERSION := $(shell git describe --exact-match --tags 2>/dev/null)
# if VERSION is empty, then populate it with branch's name and raw commit hash
ifeq (,$(VERSION))
VERSION := $(BRANCH)-$(COMMIT)
VERSION := $(COMMIT)
endif
endif

Expand Down

0 comments on commit a8155a3

Please sign in to comment.