summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-03-19 07:25:17 +0000
committerphk <phk@FreeBSD.org>1995-03-19 07:25:17 +0000
commit6b86bde9b5702677f9452708be50f4513bd8f860 (patch)
tree4400a41acd5ec2d092e10de406ca812fbcfbc13a /include
parentc1f6e1c6195551b4c687935908876d4fc81bac77 (diff)
downloadFreeBSD-src-6b86bde9b5702677f9452708be50f4513bd8f860.zip
FreeBSD-src-6b86bde9b5702677f9452708be50f4513bd8f860.tar.gz
Create osreldate.h from sys/conf/newvers.sh if we an find it. This
should take a completely ridiculous reboot out of the "make release" process...
Diffstat (limited to 'include')
-rw-r--r--include/Makefile12
1 files changed, 10 insertions, 2 deletions
diff --git a/include/Makefile b/include/Makefile
index 6755fdc..4494616 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -1,5 +1,5 @@
# From: @(#)Makefile 8.2 (Berkeley) 1/4/94
-# $Id: Makefile,v 1.20 1994/11/15 13:42:18 ache Exp $
+# $Id: Makefile,v 1.21 1995/03/18 07:03:51 rgrimes Exp $
#
# Doing a make install builds /usr/include
#
@@ -46,10 +46,18 @@ beforeinstall: ${SHARED}
install -c -o ${BINOWN} -g ${BINGRP} -m 444 $$i \
${DESTDIR}/usr/include/$$i; \
done
- @${ECHO} creating osreldate.h
+.if exists (${.CURDIR}/../sys/conf/newvers.sh)
+ @${ECHO} creating osreldate.h from newvers.sh
+ @echo \#'undef __FreeBSD_version' > ${OSREL}.new
+ JUST_TELL_ME=please ; \
+ . ${.CURDIR}/../sys/conf/newvers.sh ; \
+ echo \#'define __FreeBSD_version' $$RELDATE >> ${OSREL}.new
+.else
+ @${ECHO} creating osreldate.h from sysctl info
@echo \#'undef __FreeBSD_version' > ${OSREL}.new
@echo \#'define __FreeBSD_version '`sysctl -n kern.osreldate` \
>> ${OSREL}.new
+.endif
@if cmp -s ${OSREL} ${OSREL}.new ; then \
rm -f ${OSREL}.new ; else \
mv -f ${OSREL}.new ${OSREL} ; fi
OpenPOWER on IntegriCloud