This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA]: simulator build failures with parallel make
- To: "H . J . Lu" <hjl at lucon dot org>
- Subject: Re: [RFA]: simulator build failures with parallel make
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- Date: Mon, 16 Apr 2001 09:55:06 +0300 (IDT)
- cc: "J.T. Conklin" <jtc at redback dot com>, Andrew Cagney <ac131313 at cygnus dot com>, gdb-patches at sourceware dot cygnus dot com, "Paul D. Smith" <psmith at gnu dot org>
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''.)