Loading...
Makefile.nbsd_end Libc-763.12 Libc-498
--- Libc/Libc-763.12/Makefile.nbsd_end
+++ Libc/Libc-498/Makefile.nbsd_end
@@ -12,13 +12,10 @@
 
 NBSDSECTIONS= 1 2 3 4 5 6 7 8 9
 
-# This .for statement forces evaluation of ${CWD}
-.for _cwd in ${CWD}
-
 .for _src in ${NBSDSRCS}
 .ifmake autopatch
-${_cwd}/${_src:R}-nbsd.${_src:E}: ${_cwd}/NetBSD/${_src} _AUTOPATCH
-AUTOPATCHSRCS+= ${_cwd}/${_src:R}-nbsd.${_src:E}
+${_src:R}-nbsd.${_src:E}: NetBSD/${_src} _AUTOPATCHCUR
+AUTOPATCHSRCS+= ${_src:R}-nbsd.${_src:E}
 .else # !autopatch
 SRCS+= ${_src}
 .endif # autopatch
@@ -26,8 +23,8 @@
 
 .for _src in ${NBSDMDSRCS}
 .ifmake autopatch
-${_cwd}/${_src:R}-nbsd.${_src:E}: ${_cwd}/NetBSD/${_src} _AUTOPATCH
-AUTOPATCHSRCS+= ${_cwd}/${_src:R}-nbsd.${_src:E}
+${_src:R}-nbsd.${_src:E}: NetBSD/${_src} _AUTOPATCHCUR
+AUTOPATCHSRCS+= ${_src:R}-nbsd.${_src:E}
 .else # !autopatch
 MDSRCS+= ${_src}
 .endif # autopatch
@@ -35,8 +32,8 @@
 
 .for _src in ${NBSDMISRCS}
 .ifmake autopatch
-${_cwd}/${_src:R}-nbsd.${_src:E}: ${_cwd}/NetBSD/${_src} _AUTOPATCH
-AUTOPATCHSRCS+= ${_cwd}/${_src:R}-nbsd.${_src:E}
+${_src:R}-nbsd.${_src:E}: NetBSD/${_src} _AUTOPATCHCUR
+AUTOPATCHSRCS+= ${_src:R}-nbsd.${_src:E}
 .else # !autopatch
 MISRCS+= ${_src}
 .endif # autopatch
@@ -44,20 +41,18 @@
 
 .ifmake autopatch
 .for _src in ${NBSDHDRS}
-${_cwd}/${_src}: ${_cwd}/NetBSD/${_src} _AUTOPATCH
-AUTOPATCHHDRS+= ${_cwd}/${_src}
+${_src}: NetBSD/${_src} _AUTOPATCHCUR
+AUTOPATCHHDRS+= ${_src}
 .endfor
 .endif # autopatch
 
 .for _sect in ${NBSDSECTIONS}
 .for _src in ${NBSDMAN${_sect}}
 .ifmake autopatch
-${_cwd}/${_src}: ${_cwd}/NetBSD/${_src} _AUTOPATCH
-AUTOPATCHMAN+= ${_cwd}/${_src}
+${_src}: NetBSD/${_src} _AUTOPATCH
+AUTOPATCHMAN+= ${_src}
 .else # !autopatch
 MAN${_sect}+= ${_src}
 .endif # autopatch
 .endfor
 .endfor
-
-.endfor # _cwd