This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Backticks (`) in makefile
- From: Ben Davis <bnd25 at cam dot ac dot uk>
- To: "Sisyphus" <kalinabears at iinet dot net dot au>,"gcc" <gcc-help at gcc dot gnu dot org>
- Date: Fri, 20 Jun 2003 03:08:00 +0100
- Subject: Re: Backticks (`) in makefile
- Organization: Cambridge University
- References: <03a001c336c7$4c6d5010$3631ddcb@sisyphusii330h>
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