summaryrefslogtreecommitdiff
path: root/mk/bsd.pkg.mk
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-06-08 16:21:51 +0000
committerjlam <jlam@pkgsrc.org>2006-06-08 16:21:51 +0000
commitb55dfcc7403f6ac2561a0b81a0641a5f1ee8efd7 (patch)
tree61905ff02708a31dd9bee7339e58939ad073b1c8 /mk/bsd.pkg.mk
parentf0b8dd9c96191debe02d4b048825c56c0d2f78b7 (diff)
downloadpkgsrc-b55dfcc7403f6ac2561a0b81a0641a5f1ee8efd7.tar.gz
Introduce "makedirs" as a helper target to create directories with
unprivileged ownership.
Diffstat (limited to 'mk/bsd.pkg.mk')
-rw-r--r--mk/bsd.pkg.mk5
1 files changed, 4 insertions, 1 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 844059a54f0..955ee206169 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1847 2006/06/08 08:01:53 rillig Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1848 2006/06/08 16:21:51 jlam Exp $
#
# This file is in the public domain.
#
@@ -843,6 +843,9 @@ release-lock: .USE
${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${_LOCKFILE}
.endif
+.PHONY: makedirs
+makedirs: ${WRKDIR}
+
${WRKDIR}:
.if !defined(KEEP_WRKDIR)
. if ${PKGSRC_LOCKTYPE} == "sleep" || ${PKGSRC_LOCKTYPE} == "once"