X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/0a7506c9bdc0d0d560d4b9c8a3d1089f5db425b9..b5d655f7532a546b54809da387f7467d128a756b:/db/recno/Makefile.inc diff --git a/db/recno/Makefile.inc b/db/recno/Makefile.inc index 70f2236..5129970 100644 --- a/db/recno/Makefile.inc +++ b/db/recno/Makefile.inc @@ -2,6 +2,7 @@ # $FreeBSD: src/lib/libc/db/recno/Makefile.inc,v 1.4 2002/11/18 09:50:55 ru Exp $ .PATH: ${.CURDIR}/db/recno +CWD := ${.CURDIR}/db/recno .include "Makefile.fbsd_begin" FBSDMISRCS= rec_close.c rec_delete.c rec_get.c rec_open.c rec_put.c rec_search.c \ @@ -14,6 +15,11 @@ FBSDHDRS= recno.h # need to rename extern.h to make it unique .ifmake autopatch -rec_extern.h: FreeBSD/extern.h _AUTOPATCHCUR -AUTOPATCHHDRS+= rec_extern.h + +# This .for statement forces evaluation of ${CWD} +.for _cwd in ${CWD} +${_cwd}/rec_extern.h: ${_cwd}/FreeBSD/extern.h _AUTOPATCH +AUTOPATCHHDRS+= ${_cwd}/rec_extern.h +.endfor # _cwd + .endif # autopatch