Module Name: src Committed By: christos Date: Fri Jan 10 16:16:57 UTC 2014
Modified Files: src/share/mk: bsd.sys.mk Log Message: Add protection against direct inclusion of this file from other Makefiles. This file is only intended to be included from the other rules files like bsd.lib.mk or bsd.prog.mk. If you need things to be defined early, use bsd.own.mk. To generate a diff of this commit: cvs rdiff -u -r1.232 -r1.233 src/share/mk/bsd.sys.mk Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/mk/bsd.sys.mk diff -u src/share/mk/bsd.sys.mk:1.232 src/share/mk/bsd.sys.mk:1.233 --- src/share/mk/bsd.sys.mk:1.232 Mon Jan 6 21:16:41 2014 +++ src/share/mk/bsd.sys.mk Fri Jan 10 11:16:57 2014 @@ -1,10 +1,15 @@ -# $NetBSD: bsd.sys.mk,v 1.232 2014/01/07 02:16:41 joerg Exp $ +# $NetBSD: bsd.sys.mk,v 1.233 2014/01/10 16:16:57 christos Exp $ # # Build definitions used for NetBSD source tree builds. .if !defined(_BSD_SYS_MK_) _BSD_SYS_MK_=1 +.if !empty(.INCLUDEDFROMFILE:MMakefile*) +error: + @(echo "bsd.sys.mk should not be included from Makefiles" >& 2; exit 1) +.endif + .if ${MKREPRO:Uno} == "yes" CPPFLAGS+= -Wp,-iremap,${NETBSDSRCDIR}:/usr/src CPPFLAGS+= -Wp,-iremap,${DESTDIR}/:/