Very long SRCS list with unusually long src/ prefix
M. Warner Losh
imp at bsdimp.com
Fri Feb 6 08:25:50 PST 2004
In message: <20040206162205.GC29305 at FreeBSD.org.ua>
Ruslan Ermilov <ru at freebsd.org> writes:
: +
: +_mkdep_cS: ${DPSRCS:M*.[cS]:S/^/_mkdep_/}
: +_mkdep_cc: ${DPSRCS:M*.cc:S/^/_mkdep_/} ${DPSRCS:M*.C:S/^/_mkdep_/} \
: + ${DPSRCS:M*.cpp:S/^/_mkdep_/} ${DPSRCS:M*.cxx:S/^/_mkdep_/}
: +_mkdep_m: ${DPSRCS:M*.m:S/^/_mkdep_/}
: +.for f in ${DPSRCS:M*.[cS]} ${DPSRCS:M*.cc} ${DPSRCS:M*.C} ${DPSRCS:M*.cpp} \
: + ${DPSRCS:M*.cxx} ${DPSRCS:M*.m}
: +_mkdep_${f}: ${f}
: + @echo ${.ALLSRC}
: +.endfor
: +
I think this deserves a comment about why things are the way they are,
possibly with a suggestion for doing some kind of built-in echo.
Otherwise it looks good to me.
Warner
More information about the freebsd-current
mailing list