Re: strange dependancy generation bug?

From: Ricky Beam (
Date: Tue Jun 03 2003 - 19:43:47 EST

On Tue, 3 Jun 2003, Sam Ravnborg wrote:
>In make a so-called "canned command sequence" is generated.
>Quote from 'info make':
> On the other hand, prefix characters on the command line that refers
> to a canned sequence apply to every line in the sequence. So the rule:
> frob.out:
> @$(frobnicate)

(I seriously cannot believe there needs to be a protracted debate about
 what's broken and who's at fault -- make or Makefile. What we see is
 what we get and it's a 5 second fix. Beyond that, it's a problem for
 the GNU Make maintainers, not lkml.)

Weither make is using 1 shell or 10 doesn't matter. Make is the thing
emitting the command to the console as well as feeding the shell. It's
a matter of one command or more than one command.

The Kbuild system is rather complex. If you look deep enough, you'll
see where the '@' is being applied. What is actually happening looks
like this:
        define rule_for_act_of_frobnication

        frobnicate = @set -e; \

                $(call frobnicate)

There's a big difference in @$(call frobnicate) and $(call frobnicate).
Both ultimately resovle to two line of text. In the first case, all of
it hidden. In the second, only the lines explicitly hidden will be hidden.

Make isn't broken. is. To me, this was immediately obvious
and confirmed after a few seconds searching for the "@". (It looks like
someone hit [enter] where they shouldn't have.)


To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

This archive was generated by hypermail 2b29 : Sat Jun 07 2003 - 22:00:22 EST