aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2008-03-25 15:47:22 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2008-03-25 15:47:22 +0000
commitec51d61f1aea5738824dc114d8c513b042de62ae (patch)
treed13a48136c5423f8acd5b238b07c5ae311fb3ad4 /Makefile
parenteb085c43f091a0cebafddc3ce909b366431d896c (diff)
downloadsrc-ec51d61f1aea5738824dc114d8c513b042de62ae.tar.gz
src-ec51d61f1aea5738824dc114d8c513b042de62ae.zip
Add code that should catch the most common case when date/time is
set incorrectly.
Notes
Notes: svn path=/head/; revision=177609
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index ae568db8ae50..8df04244c8df 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)
#