From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eli Zaretskii To: "H . J . Lu" Cc: "J.T. Conklin" , Andrew Cagney , gdb-patches@sourceware.cygnus.com, "Paul D. Smith" Subject: Re: [RFA]: simulator build failures with parallel make Date: Sun, 15 Apr 2001 22:53:00 -0000 Message-id: References: <20010415135646.A25615@lucon.org> X-SW-Source: 2001-04/msg00154.html 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''.)