diff options
| author | sjg <sjg@NetBSD.org> | 2000-05-06 15:05:15 +0000 |
|---|---|---|
| committer | sjg <sjg@NetBSD.org> | 2000-05-06 15:05:15 +0000 |
| commit | 608279c0cad7de4980ffbdf81af9dca64b9808ad (patch) | |
| tree | 6777e944819b5c12a62cee1ee23eb159cc319427 /Makefile.inc | |
| parent | 82cfd6b42adff955e1bb9e81e6188d84c4ae446c (diff) | |
Set RELTOP to '.' if that's where we are.
Diffstat (limited to 'Makefile.inc')
| -rw-r--r-- | Makefile.inc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/Makefile.inc b/Makefile.inc index d7265c09913..03591403ef5 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -1,9 +1,13 @@ -# $NetBSD: Makefile.inc,v 1.2 2000/05/03 00:08:13 sjg Exp $ +# $NetBSD: Makefile.inc,v 1.3 2000/05/06 15:05:15 sjg Exp $ .ifndef ABSTOP ABSTOP!= cd ${.PARSEDIR}; pwd +.if (${.PARSEDIR} == ${.CURDIR}) +RELTOP:= . +.else RELTOP:= ${.PARSEDIR:S,^${.CURDIR},,} +.endif KERNSRCDIR:=${ABSTOP}/sys |
