"Verrol L. Adams" <[EMAIL PROTECTED]> writes:
> hi, i have been using the following on HP-UX with their make and
> clearmake (part of Clearcase) without problem:
> ${MOD_CPP}: ${@F.o=.cpp}
I don't believe you. Probably you mean this:
${MOD_CPP}: $${@F.o=.cpp}
(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 <[EMAIL PROTECTED]> 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.
_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make