Unix Programming - make $*

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > May 2007 > make $*





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author make $*
Simon

2007-05-22, 1:18 am

I have seen documenation that says that inside a makefile $@
represents the target and $* represents the target minus any suffix.
On several machines, with both gnu make and Sun's make, $@ works as
specified, but $* is nil.

???

Simon

Simon

2007-05-22, 1:18 am

On May 21, 6:54 pm, Simon <resmi...@yahoo.com> wrote:
> I have seen documenation that says that inside a makefile $@
> represents the target and $* represents the target minus any suffix.
> On several machines, with both gnu make and Sun's make, $@ works as
> specified, but $* is nil.
>
> ???
>
> Simon


I guess I found the answer in the gnu make online manual:

"If the target name in an explicit rule does not end with a recognized
suffix, `$*' is set to the empty string for that rule."

Alex Colvin

2007-05-23, 7:20 pm

From the title I assumed this must be about

sudo nice -1 make $*

(make money fast)
--
mac the naïf
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com