diff options
author | xtraeme <xtraeme@pkgsrc.org> | 2007-04-19 18:16:36 +0000 |
---|---|---|
committer | xtraeme <xtraeme@pkgsrc.org> | 2007-04-19 18:16:36 +0000 |
commit | 74128fcaf34b7872bbb1a3a02c9d3c7019125ccc (patch) | |
tree | 71e4653704ababa3436481e5a5de5043827f4514 /mk | |
parent | 6255cc51c8960e18ad1e28e4d1a5b72156352282 (diff) | |
download | pkgsrc-74128fcaf34b7872bbb1a3a02c9d3c7019125ccc.tar.gz |
Check if INSTALLATION_DIRS_FROM_PLIST is defined before using .if
!empty...
Reported by Mihai Chelaru.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/install/install.mk | 5 |
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" |