--- src/share/mk/bsd.dep.mk 2004/11/13 17:31:00 1.7 +++ src/share/mk/bsd.dep.mk 2005/09/01 14:17:58 1.8 @@ -67,7 +67,20 @@ tags: ${SRCS} .if defined(SRCS) CLEANFILES?= -.for _PSRC in ${SRCS:M*.patch} +.for _PSRC in ${SRCS:M*.no_obj.patch} +.for _PC in ${_PSRC:T:C/(\.no_obj)?\.patch$//:S|,|/|g} + +${_PC}: ${CONTRIBDIR}/${_PC} ${_PSRC} + mkdir -p ${.TARGET:H} + patch -o ${.TARGET} -i ${.ALLSRC:M*.patch} ${CONTRIBDIR}/${.TARGET} + +beforedepend: ${PC_} + +CLEANFILES:= ${CLEANFILES} ${_PC} +.endfor +.endfor + +.for _PSRC in ${SRCS:N*.no_obj.patch:M*.patch} .for _PC in ${_PSRC:T:C/(\.no_obj)?\.patch$//:S|,|/|g} ${_PC}: ${CONTRIBDIR}/${_PC} ${_PSRC}