help-make
[Top][All Lists]
Advanced

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

Multiple target rule


From: Samya DasSarma
Subject: Multiple target rule
Date: Fri, 16 Jul 2004 13:41:28 -0700

Hi Folks,
  Here is my problem. 

Assume the makefile is:

targs = %.x %.z
$(targs):
      echo "$(@) $(suffix $(@))"
all:a.x a.z

Now, if I do gmake all, the output is:

echo "a.x .x"
a.x .x

Question is, why is it not trying to build a.z? There is no a.x/a.z
files present in my current directory.

Thanks
-Samya




reply via email to

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