tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: bsd.lib.mk question
On Mon, Jun 06, 2011 at 12:58:53AM +0000, David Holland wrote:
> Does anyone know why bsd.lib.mk contains the following logic?
>
> _YLSRCS= ${SRCS:M*.[ly]:C/\..$/.c/} ${YHEADER:D${SRCS:M*.y:.y=.h}}
> :
> DPSRCS+= ${_YLSRCS}
> :
> ${STOBJS} ${POBJS} ${GOBJS} ${SOBJS} ${LOBJS}: ${DPSRCS}
>
> 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
--
David Laight: david%l8s.co.uk@localhost
Home |
Main Index |
Thread Index |
Old Index