bug-make
[Top][All Lists]
Advanced

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

Re: is this feature broken or no feature at all?


From: Paul Smith
Subject: Re: is this feature broken or no feature at all?
Date: Mon, 29 Apr 2002 00:54:01 -0400

"Verrol L. Adams" <address@hidden> writes:

> hi, i have been using the following on HP-UX with their make and
> clearmake (part of  Clearcase) without problem:

>  ${MOD_CPP}: address@hidden

I don't believe you.  Probably you mean this:

  ${MOD_CPP}: address@hidden

(note the double-$).

> Any reason why this doen't work on my Mandrake Linux 8.2 i686 (P4)
> with GNU Make version 3.79.1?

GNU make does not support this syntax ($$@ etc. in the prerequisites
list).  See the GNU make manual, section "Incompatibilities and Missing
Features".

As suggested there, you can rewrite this rule using static pattern
rules, like this:

  $(MOD_CPP): $(MODULE_DIR)/%.o : %.cpp
            @echo "..."
              ...

This will work with GNU make, and with clearmake -C gnu.

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <address@hidden> HASMAT: HA Software Mthds & Tools
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist
-------------------------------------------------------------------------------
   These are my opinions---Nortel Networks takes no responsibility for them.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]