summaryrefslogtreecommitdiff
path: root/mk/bsd.hacks.mk
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-11-30 15:09:45 +0000
committertv <tv@pkgsrc.org>2004-11-30 15:09:45 +0000
commit29b0526b9b8cb08293673ad8bf7d2451899372cf (patch)
tree4536849a8ab4bbfcdbd926615276c94b211ede13 /mk/bsd.hacks.mk
parent28e0cb9288a55c949945c476185b84e7125f0718 (diff)
downloadpkgsrc-29b0526b9b8cb08293673ad8bf7d2451899372cf.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/bsd.hacks.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.