summaryrefslogtreecommitdiffstats
path: root/release/Makefile
diff options
context:
space:
mode:
authorgjb <gjb@FreeBSD.org>2015-02-09 09:56:21 +0000
committergjb <gjb@FreeBSD.org>2015-02-09 09:56:21 +0000
commitea9a3d8b689a4a59325cd5bf19ef65140375696a (patch)
tree2f5a008442f5ca6f215685d80c9085f5ecaca227 /release/Makefile
parentd8dbe90afc1f6bfe2b622fb74f04a6c40181f455 (diff)
downloadFreeBSD-src-ea9a3d8b689a4a59325cd5bf19ef65140375696a.zip
FreeBSD-src-ea9a3d8b689a4a59325cd5bf19ef65140375696a.tar.gz
Define FREEBSD_VERSION in release/Makefile, derived
from sys/sys/param.h. Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'release/Makefile')
-rw-r--r--release/Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/release/Makefile b/release/Makefile
index 4672a91..0dffc1b 100644
--- a/release/Makefile
+++ b/release/Makefile
@@ -54,6 +54,10 @@ TARGET_ARCH= ${TARGET}
IMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET}
DISTDIR= dist
+# Get the __FreeBSD_version for the build
+FREEBSD_VERSION!= awk '/^\#define __FreeBSD_version/ {print $$3}' \
+ ${.CURDIR}/../sys/sys/param.h
+
# Define OSRELEASE by using newvars.sh
.if !defined(OSRELEASE) || empty(OSRELEASE)
.for _V in TYPE BRANCH REVISION
OpenPOWER on IntegriCloud