aboutsummaryrefslogtreecommitdiff
path: root/release/Makefile
diff options
context:
space:
mode:
authorGlen Barber <gjb@FreeBSD.org>2015-02-09 09:56:21 +0000
committerGlen Barber <gjb@FreeBSD.org>2015-02-09 09:56:21 +0000
commit7bdb2409ca9ee73dce575b0e11a9a5bc728c7a35 (patch)
tree2f5a008442f5ca6f215685d80c9085f5ecaca227 /release/Makefile
parent6df0b7b48572643e894c07065e5236ed86c806bb (diff)
downloadsrc-7bdb2409ca9ee73dce575b0e11a9a5bc728c7a35.tar.gz
src-7bdb2409ca9ee73dce575b0e11a9a5bc728c7a35.zip
Define FREEBSD_VERSION in release/Makefile, derived
from sys/sys/param.h. Sponsored by: The FreeBSD Foundation
Notes
Notes: svn path=/head/; revision=278445
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 4672a91511a8..0dffc1bbea44 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