pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk/install Added AUTO_MKDIRS as an alias for INSTALLAT...
details: https://anonhg.NetBSD.org/pkgsrc/rev/db078c4c44a8
branches: trunk
changeset: 536227:db078c4c44a8
user: rillig <rillig%pkgsrc.org@localhost>
date: Fri Dec 07 05:25:25 2007 +0000
description:
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:
mk/install/install.mk | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 85a542668342 -r db078c4c44a8 mk/install/install.mk
--- a/mk/install/install.mk Thu Dec 06 22:03:22 2007 +0000
+++ b/mk/install/install.mk Fri Dec 07 05:25:25 2007 +0000
@@ -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+= 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"
Home |
Main Index |
Thread Index |
Old Index