diff options
author | jlam <jlam@pkgsrc.org> | 2001-06-12 18:58:42 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2001-06-12 18:58:42 +0000 |
commit | 9eb4042defec2c4e97eb3e57fa322ec7e82bb1fb (patch) | |
tree | 30d363035dea60a1610424ecfcf0240df31c5c7b /mk | |
parent | 50458a545b48b05e5b60954220401f23cd18ab3c (diff) | |
download | pkgsrc-9eb4042defec2c4e97eb3e57fa322ec7e82bb1fb.tar.gz |
Fix inclusion of defs.*.mk files so that it works from anywhere in the
pkgsrc tree that contains a Makefile.
Diffstat (limited to 'mk')
-rw-r--r-- | mk/bsd.prefs.mk | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/mk/bsd.prefs.mk b/mk/bsd.prefs.mk index 16626a4a70f..1f277919988 100644 --- a/mk/bsd.prefs.mk +++ b/mk/bsd.prefs.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.prefs.mk,v 1.39 2001/06/12 12:49:55 jlam Exp $ +# $NetBSD: bsd.prefs.mk,v 1.40 2001/06/12 18:58:42 jlam Exp $ # # Make file, included to get the site preferences, if any. Should # only be included by package Makefiles before any .if defined() @@ -117,10 +117,18 @@ USE_INET6?= NO # Load the OS-specific definitions for program variables. Default to loading # the NetBSD ones if an OS-specific file doesn't exist. -.if exists(../../mk/defs.${OPSYS}.mk) -.include "../../mk/defs.${OPSYS}.mk" -.else -.include "../../mk/defs.NetBSD.mk" +.if exists(${.CURDIR}/../../mk/defs.${OPSYS}.mk) +.include "${.CURDIR}/../../mk/defs.${OPSYS}.mk" +.elif exists(${.CURDIR}/../mk/defs.${OPSYS}.mk) +.include "${.CURDIR}/../mk/defs.${OPSYS}.mk" +.elif exists(${.CURDIR}/mk/defs.${OPSYS}.mk) +.include "${.CURDIR}/mk/defs.${OPSYS}.mk" +.elif exists(${.CURDIR}/../../mk/defs.NetBSD.mk) +.include "${.CURDIR}/../../mk/defs.NetBSD.mk" +.elif exists(${.CURDIR}/../mk/defs.NetBSD.mk) +.include "${.CURDIR}/../mk/defs.NetBSD.mk" +.else exists(${.CURDIR}/mk/defs.NetBSD.mk) +.include "${.CURDIR}/mk/defs.NetBSD.mk" .endif # Check if we got Mesa distributed with XFree86 4.x or if we need to |