summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2008-03-25 15:47:22 +0000
committerru <ru@FreeBSD.org>2008-03-25 15:47:22 +0000
commit771a69438e7036c95f5bbaf73984d679d974c8e0 (patch)
treed13a48136c5423f8acd5b238b07c5ae311fb3ad4 /Makefile
parente8523e8018d8b2fe1868a047de0701ddc10ddf17 (diff)
downloadFreeBSD-src-771a69438e7036c95f5bbaf73984d679d974c8e0.zip
FreeBSD-src-771a69438e7036c95f5bbaf73984d679d974c8e0.tar.gz
Add code that should catch the most common case when date/time is
set incorrectly.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ae568db..8df0424 100644
--- a/Makefile
+++ b/Makefile
@@ -172,6 +172,10 @@ ${TGTS}:
.MAIN: all
STARTTIME!= LC_ALL=C date
+CHECK_TIME!= find ${.CURDIR}/sys/sys/param.h -mtime -0
+.if !empty(CHECK_TIME)
+.error check your date/time: ${STARTTIME}
+.endif
.if defined(HISTORICAL_MAKE_WORLD) || defined(DESTDIR)
#
OpenPOWER on IntegriCloud