Skip to content

Commit 2cb3fcc

Browse files
author
Jonathan Thurman
authored
Merge pull request #105 from newrelic/jthurman/make-update
Allow overriding the version on make
2 parents 7c86533 + 9ee0841 commit 2cb3fcc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Global vars
33
#############################
44
PROJECT_NAME := $(shell basename $(shell pwd))
5-
PROJECT_VER := $(shell git describe --tags --always --dirty | sed -e '/^v/s/^v\(.*\)$$/\1/g') # Strip leading 'v' if found
5+
PROJECT_VER ?= $(shell git describe --tags --always --dirty | sed -e '/^v/s/^v\(.*\)$$/\1/g') # Strip leading 'v' if found
66
# Last released version (not dirty
77
PROJECT_VER_TAGGED := $(shell git describe --tags --always --abbrev=0 | sed -e '/^v/s/^v\(.*\)$$/\1/g') # Strip leading 'v' if found
88
SRCDIR ?= .

0 commit comments

Comments
 (0)