summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authortv <tv>2004-11-30 15:09:45 +0000
committertv <tv>2004-11-30 15:09:45 +0000
commite0d8f8241a68b3fbfad9fdeae7ad5bd56292da30 (patch)
tree4536849a8ab4bbfcdbd926615276c94b211ede13 /mk
parent38cc8b6fba9c4ae7609a794fc271faa08625714c (diff)
downloadpkgsrc-e0d8f8241a68b3fbfad9fdeae7ad5bd56292da30.tar.gz
We already know that bsd.prefs.mk is included before this, so reduce make
parser churn by skipping a second include of it. Use PKGDIR in preference to .CURDIR as in other .mk files.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.hacks.mk8
1 files changed, 3 insertions, 5 deletions
diff --git a/mk/bsd.hacks.mk b/mk/bsd.hacks.mk
index 5477d594903..36c00cd5033 100644
--- a/mk/bsd.hacks.mk
+++ b/mk/bsd.hacks.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.hacks.mk,v 1.1 2004/11/14 07:23:07 jlam Exp $
+# $NetBSD: bsd.hacks.mk,v 1.2 2004/11/30 15:09:45 tv Exp $
#
# Copyright (c) 2004 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -57,12 +57,10 @@
# .endif # FOO_HACKS_MK
# -------------8<-------------8<-------------8<-------------8<-------------
-.include "../../mk/bsd.prefs.mk"
-
PKG_HACKS?= # empty
-.if exists(${.CURDIR}/hacks.mk)
-. include "${.CURDIR}/hacks.mk"
+.if exists(${PKGDIR}/hacks.mk)
+. include "${PKGDIR}/hacks.mk"
.endif
# Record any package hacks that we use in the installed package.