tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: question

On Mon, Jun 06, 2011 at 12:58:53AM +0000, David Holland wrote:
> Does anyone know why contains the following logic?
>    _YLSRCS=        ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}
>       :
>    DPSRCS+=        ${_YLSRCS}
>       :
> It appears that this forces a complete recompile any time a .l or .y
> file is touched, which seems entirely wrong.

Might be to ensure anything that depends on the generated .h file
is recompiled - working around the fact that make has no syntax
for having one set of commands generate 2 files.


David Laight:

Home | Main Index | Thread Index | Old Index