pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mk/install This file must not be included by anything ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/0ff1eb3f94d0
branches:  trunk
changeset: 498471:0ff1eb3f94d0
user:      rillig <rillig%pkgsrc.org@localhost>
date:      Tue Aug 23 12:01:52 2005 +0000

description:
This file must not be included by anything other than bsd.pkg.mk.
Enforce this by not writing it in a comment but checking it in the code.

diffstat:

 mk/install/bsd.pkginstall.mk |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r e1905578f278 -r 0ff1eb3f94d0 mk/install/bsd.pkginstall.mk
--- a/mk/install/bsd.pkginstall.mk      Tue Aug 23 11:49:41 2005 +0000
+++ b/mk/install/bsd.pkginstall.mk      Tue Aug 23 12:01:52 2005 +0000
@@ -1,14 +1,15 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.23 2005/08/23 11:48:50 rillig Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.24 2005/08/23 12:01:52 rillig Exp $
 #
 # This Makefile fragment is included by bsd.pkg.mk to use the common
 # INSTALL/DEINSTALL scripts.  To use this Makefile fragment, simply:
 #
 # (1) Set the variables to customize the install scripts to the package, and
 # (2) Set USE_PKGINSTALL to YES in the package Makefile.
-#
-# NOTE: This file must _not_ be included from anything else than bsd.pkg.mk.
 
-.if !defined(BSD_PKG_INSTALL_MK)
+.if defined(BSD_PKG_INSTALL_MK)
+PKG_FAIL_REASON+=      "[bsd.pkginstall.mk] Must not be included directly."
+
+.else
 BSD_PKG_INSTALL_MK=    1
 
 .include "../../mk/bsd.prefs.mk"



Home | Main Index | Thread Index | Old Index