Skip to content

Commit 976586f

Browse files
authored
Merge pull request #1806 from mattpolzin/overridable-version-suffix
2 parents 1669fc3 + fe306f8 commit 976586f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ifeq ($(shell git status >/dev/null 2>&1; echo $$?), 0)
2424
GIT_SHA1 := $(shell git rev-parse --short=9 HEAD)
2525
endif
2626
endif
27+
VERSION_TAG ?= $(GIT_SHA1)
2728

2829
export IDRIS2_VERSION := ${MAJOR}.${MINOR}.${PATCH}
2930
export NAME_VERSION := ${NAME}-${IDRIS2_VERSION}
@@ -66,7 +67,7 @@ ${TARGET}: src/IdrisPaths.idr
6667
src/IdrisPaths.idr: FORCE
6768
echo "-- @""generated" > src/IdrisPaths.idr
6869
echo 'module IdrisPaths' >> src/IdrisPaths.idr
69-
echo 'export idrisVersion : ((Nat,Nat,Nat), String); idrisVersion = ((${MAJOR},${MINOR},${PATCH}), "${GIT_SHA1}")' >> src/IdrisPaths.idr
70+
echo 'export idrisVersion : ((Nat,Nat,Nat), String); idrisVersion = ((${MAJOR},${MINOR},${PATCH}), "${VERSION_TAG}")' >> src/IdrisPaths.idr
7071
echo 'export yprefix : String; yprefix="${IDRIS2_PREFIX}"' >> src/IdrisPaths.idr
7172

7273
FORCE:

0 commit comments

Comments
 (0)