Unbreak make world by adding .CURDIR here and there.

Submitted by:	Harry Starr <starr3@gccs.com.au>
This commit is contained in:
John Hay 2001-10-22 08:56:02 +00:00
parent 694725c201
commit fbf68bb932
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=85307

View file

@ -2,7 +2,7 @@
# #
# Doing a make install builds /usr/share/examples # Doing a make install builds /usr/share/examples
DIRS!= for i in *; do \ DIRS!= cd ${.CURDIR}; for i in *; do \
if test -d $$i -a $$i != CVS -a $$i != ipfilter; then \ if test -d $$i -a $$i != CVS -a $$i != ipfilter; then \
echo $$i; \ echo $$i; \
fi; \ fi; \
@ -22,10 +22,11 @@ all clean cleandir depend lint tags:
beforeinstall: etc-examples ${SHARED} beforeinstall: etc-examples ${SHARED}
.for dir in ${DIRS} .for dir in ${DIRS}
FILES!= find -L ${dir} \( -name CVS -prune \) -o -type f -print FILES!= cd ${.CURDIR}; find -L ${dir} \( -name CVS -prune \) -o -type f -print
.for file in ${FILES} .for file in ${FILES}
copies:: copies::
${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${file} ${DDIR}/${file} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/${file} \
${DDIR}/${file}
.endfor .endfor
.endfor .endfor