This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Backticks (`) in makefile


----- Original Message -----
From: "Ben Davis" <bnd25@cam.ac.uk>
To: "Sisyphus" <kalinabears@iinet.net.au>; "gcc" <gcc-help@gcc.gnu.org>
Sent: Friday, June 20, 2003 12:08 PM
Subject: Re: Backticks (`) in makefile


> The backticks aren't interpreted by the makefile, but are passed to the
shell.
> A Bourne-style shell like bash, when confronted with the following:
>
>    gcc ... `cat blah`
>
> will execute 'cat blah', capture its stdout and place the contents on the
> command line. So if 'blah' contains:
>
>    foo.o
>    bar.o
>
> then the command will become:
>
>    gcc ... foo.o blah.o
>
> Hope that helps :)
>
> Ben
>
>

Indeed it does.
This means that if 'blah' is empty (as it is in my case) I should be able to
simply delete `cat blah` and it will work as intended.
There is still a question mark over whether my 'blah' *should* be empty -
I'll have to look into that.

Thanks Ben.

Cheers,
Rob


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