This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [RFA]: simulator build failures with parallel make



On Sun, 15 Apr 2001, H . J . Lu wrote:

> >         foo.tab.c foo.tab.h: foo-stamp
> > 
> >         foo-stamp: foo.y
> >                 $(YACC) -b foo -p foo -d $?
> >                 touch $@
> > 
> > So what exactly is your complaint about my patch.
> > 
> 
> That is a bug in Makefile and that is why we have ylwrap. See how it is
> done in ld/Makefile.*, binutils/Makefile.* and gas/Makefile.*.

With GNU Make, you can avoid the problem with pattern rules (which 
specifically target cases like Yacc and Bison).

IMVHO, ylwrap is a kludge.  It might be okay to have users of non-GNU 
Make to need it, but GNU Make should have a cleaner feature for when
a command produces several target files in a single run.  (Pattern rules 
only work well when all the files created by the program have the same 
stem; if not, you need to define your patterns ``creatively''.)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]