make package id configurable via env var

This commit is contained in:
Adam C. Foltzer 2014-04-23 18:04:15 -07:00
parent 288178dea2
commit af3e5ecb39

View File

@ -21,7 +21,8 @@ LIGHT := ${WiX}/bin/light.exe
REV ?= $(shell git rev-parse --short=7 HEAD || echo "unknown")
VERSION := $(shell grep -i ^Version cryptol.cabal | awk '{ print $$2}')
PKG := cryptol-${VERSION}-${UNAME}-${ARCH}_${REV}
PKG_ID ?= ${VERSION}-${UNAME}-${ARCH}_${REV}
PKG := cryptol-${PKG_ID}
# Windows-specific stuff
ifneq (,$(findstring _NT,${UNAME}))