summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorrillig <rillig>2007-12-07 05:25:25 +0000
committerrillig <rillig>2007-12-07 05:25:25 +0000
commit146646a849354bdd64170f2190fcd0e076d13578 (patch)
tree5b3c69917733eb65ebfaaf0cd6bb9688c1b175ec /mk
parent24dcae79d3db00ee5a01ac2e092817592d8fac89 (diff)
downloadpkgsrc-146646a849354bdd64170f2190fcd0e076d13578.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')
-rw-r--r--mk/install/install.mk4
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"