diff --git a/lib/Makefile b/lib/Makefile index d5f1cafd15ad..1d3352255d0d 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -20,7 +20,7 @@ SUBDIR+=libc libcompat libcom_err libcurses libdisk libedit \ SUBDIR+= libc_r .endif -.if !exists(../secure) || defined(NOSECURE) || defined(NOCRYPT) +.if !exists(${.CURDIR}/../secure) || defined(NOSECURE) || defined(NOCRYPT) SUBDIR+= libcrypt .else SUBDIR+= ../secure/lib/libcrypt @@ -30,7 +30,7 @@ SUBDIR+= libcrypt .endif .endif -.if !exists(../eBones) || defined(NOSECURE) +.if !exists(${.CURDIR}/../eBones) || defined(NOSECURE) SUBDIR+= libtelnet .else .if defined(RELEASEDIR)