summaryrefslogtreecommitdiff
path: root/mk/install
diff options
context:
space:
mode:
authorxtraeme <xtraeme>2007-04-19 18:16:36 +0000
committerxtraeme <xtraeme>2007-04-19 18:16:36 +0000
commit4a6d8d869441755869e812253bcff2c45d098d56 (patch)
tree71e4653704ababa3436481e5a5de5043827f4514 /mk/install
parentfb7b205a4f8b2ac0ab3e8506af6cbae1d07b15ab (diff)
downloadpkgsrc-4a6d8d869441755869e812253bcff2c45d098d56.tar.gz
Check if INSTALLATION_DIRS_FROM_PLIST is defined before using .if
!empty... Reported by Mihai Chelaru.
Diffstat (limited to 'mk/install')
-rw-r--r--mk/install/install.mk5
1 files changed, 3 insertions, 2 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk
index 14fa3ead6b7..1434151f8bc 100644
--- a/mk/install/install.mk
+++ b/mk/install/install.mk
@@ -1,4 +1,4 @@
-# $NetBSD: install.mk,v 1.41 2007/04/19 16:52:03 joerg Exp $
+# $NetBSD: install.mk,v 1.42 2007/04/19 18:16:36 xtraeme Exp $
#
# This file provides the code for the "install" phase.
#
@@ -147,7 +147,8 @@ _INSTALL_ALL_TARGETS+= install-check-umask
_INSTALL_ALL_TARGETS+= check-files-pre
.endif
_INSTALL_ALL_TARGETS+= install-makedirs
-.if !empty(INSTALLATION_DIRS_FROM_PLIST:M[Yy][Ee][Ss])
+.if defined(INSTALLATION_DIRS_FROM_PLIST) && \
+ !empty(INSTALLATION_DIRS_FROM_PLIST:M[Yy][Ee][Ss])
_INSTALL_ALL_TARGETS+= install-dirs-from-PLIST
.endif
.if ${_USE_DESTDIR} == "no"