From cd99e0fe847a0479fde65ff2163f62803e0aec17 Mon Sep 17 00:00:00 2001 From: lukem Date: Thu, 27 Jun 2002 00:54:30 +0000 Subject: Only add RCD_SCRIPTS_DIR to MAKE_DIRS if RCD_SCRIPTS isn't empty. Prevents warning on deinstall "remove /etc/rc.d" if no rc.d scripts are provided for the package and PKG_CONFIG=no. --- mk/bsd.pkg.install.mk | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'mk') diff --git a/mk/bsd.pkg.install.mk b/mk/bsd.pkg.install.mk index fe5415d0c22..32c3dca426a 100644 --- a/mk/bsd.pkg.install.mk +++ b/mk/bsd.pkg.install.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.install.mk,v 1.20 2002/06/22 02:48:35 jlam Exp $ +# $NetBSD: bsd.pkg.install.mk,v 1.21 2002/06/27 00:54:30 lukem Exp $ # # This Makefile fragment is included by package Makefiles to use the common # INSTALL/DEINSTALL scripts. To use this Makefile fragment, simply: @@ -145,7 +145,10 @@ FILES_SUBST+= RCD_SCRIPTS_DIR=${RCD_SCRIPTS_DIR} # MAKE_DIRS?= # empty MAKE_DIRS_PERMS?= # empty -_MAKE_DIRS= ${PKG_SYSCONFDIR} ${RCD_SCRIPTS_DIR} ${MAKE_DIRS} +_MAKE_DIRS= ${PKG_SYSCONFDIR} ${MAKE_DIRS} +.if !empty(RCD_SCRIPTS) +_MAKE_DIRS+= ${RCD_SCRIPTS_DIR} +.endif OWN_DIRS?= # empty OWN_DIRS_PERMS?= # empty FILES_SUBST+= MAKE_DIRS=${_MAKE_DIRS:Q} -- cgit v1.2.3