Re: what about " $(Q)@ " in toplevel Makefile??? A resent mail..

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




>>    I'm reading top-level makefile of kernel version of 2.6.25, and being confused about
>> "$(Q)@" in following lines:
>>
>>    124 $(filter-out _all sub-make $(CURDIR)/Makefile, $(MAKECMDGOALS)) _all: sub-make
>>    125         $(Q)@:
>>
>>    I know what's meaning for line 124, but what about line 125? Is it a command?
>
> Are u notice the comment in the Makefile ?
> u need more carefully to read the Makefile ^_^.......

En, it's true, "more carefully" is always what I need....  thanks for your remind, see bellow please.

>
> # Beautify output
> # ---------------------------------------------------------------------------
> #
> # Normally, we echo the whole command before executing it. By making
> # that echo $($(quiet)$(cmd)), we now have the possibility to set
> # $(quiet) to choose other forms of output instead, e.g.
> #
> #         quiet_cmd_cc_o_c = Compiling $(RELDIR)/$@
> #         cmd_cc_o_c       = $(CC) $(c_flags) -c -o $@ $<
> #
> # If $(quiet) is empty, the whole command will be printed.
> # If it is set to "quiet_", only the short version will be printed.
> # If it is set to "silent_", nothing will be printed at all, since
> # the variable $(silent_cmd_cc_o_c) doesn't exist.
> #
> # A simple variant is to prefix commands with $(Q) - that's useful
> # for commands that shall be hidden in non-verbose mode.
> #
> #       $(Q)ln $@ :<
> #
> # If KBUILD_VERBOSE equals 0 then the above command will be hidden.
> # If KBUILD_VERBOSE equals 1 then the above command is displayed.
>
> ifeq ($(KBUILD_VERBOSE),1)
>  quiet =
>  Q =
> else
>  quiet=quiet_
>  Q = @
> endif
>
>
>> I know the "$(Q)@" indicates nothing if KBUILD_VERBOSE==1,and @ if KBUILD_VERBOSE gave other
>> values.

Oh, here are some words typed incorrectly.  The "$(Q)" will  expand to "@" when KBUILD_VERBOSE doesn't equal
to 1, is this right?  If it's true, than what's meaning "@@:" at line 125 ?????  How about  "@:" again if KBUID_VERBOS==1 ????

>>
>>    Thanks..
>>
>

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux