diff options
author | rillig <rillig@pkgsrc.org> | 2007-12-07 05:25:25 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-12-07 05:25:25 +0000 |
commit | a2f9aae352fbedf6b6aff785fb609137f370c279 (patch) | |
tree | 5b3c69917733eb65ebfaaf0cd6bb9688c1b175ec /mk/install | |
parent | 2e6521f63c78325b43444afc57bf6a62d5286105 (diff) | |
download | pkgsrc-a2f9aae352fbedf6b6aff785fb609137f370c279.tar.gz |
Added AUTO_MKDIRS as an alias for INSTALLATION_DIRS_FROM_PLIST. The
variable is much more comfortable than specifying all the directories in
INSTALLATION_DIRS that using such a long name for it feels like a
punishment. It also doesn't look nice in the package Makefiles, for
example:
old:
INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 ${PKGMANDIR}/man8
new:
AUTO_MKDIRS= yes
The variable INSTALLATION_DIRS_FROM_PLIST will be deprecated slowly.
Diffstat (limited to 'mk/install')
-rw-r--r-- | mk/install/install.mk | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mk/install/install.mk b/mk/install/install.mk index 4e787bd6104..e076258f577 100644 --- a/mk/install/install.mk +++ b/mk/install/install.mk @@ -1,4 +1,4 @@ -# $NetBSD: install.mk,v 1.48 2007/12/01 11:11:56 rillig Exp $ +# $NetBSD: install.mk,v 1.49 2007/12/07 05:25:25 rillig Exp $ # # This file provides the code for the "install" phase. # @@ -28,6 +28,7 @@ # to ${PREFIX}. As a convenience, a leading man/ is transformed # to ${PKGMANDIR}, to save package authors from typing too much. # +# AUTO_MKDIRS # INSTALLATION_DIRS_FROM_PLIST # In most (or even all?) cases the PLIST files in the package # directory already contain all directories that are needed. @@ -162,6 +163,7 @@ _INSTALL_ALL_TARGETS+= check-files-pre _INSTALL_ALL_TARGETS+= install-makedirs .if defined(INSTALLATION_DIRS_FROM_PLIST) && \ !empty(INSTALLATION_DIRS_FROM_PLIST:M[Yy][Ee][Ss]) +.elif defined(AUTO_MKDIRS) && !empty(AUTO_MKDIRS:M[Yy][Ee][Ss]) _INSTALL_ALL_TARGETS+= install-dirs-from-PLIST .endif .if ${_USE_DESTDIR} == "no" |