help-make
[Top][All Lists]
Advanced

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

Re: Pattern rule prereqs are variables with % in them


From: Greg Chicares
Subject: Re: Pattern rule prereqs are variables with % in them
Date: Sat, 03 Sep 2005 17:53:52 +0000
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

On 2005-9-2 21:42 UTC, Boucher, Jean wrote:
> 
[snip example]
> 
> When I try this, I get "*** No rule to make target `Example.elf', needed
> by `Example'.  Stop."

I copied your example into one file, adding '#' before comments.
That way, it seems to work:

  echo 'Hit .elf pattern rule for Example.elf. tgt=Example.elf,prereq=';\
  #       <link command>
  Hit .elf pattern rule for Example.elf. tgt=Example.elf,prereq=
  echo 'Hit .bin pattern rule for Example.bin';\
  #       <bin command>
  Hit .bin pattern rule for Example.bin
  Hit .lib .lib_objs pattern rule for (MODULE).lib
  Made Example.

Is this the output what you wanted?

If so, the problem is the way you're factoring this into two
files. Do you use 'include' to reference one from the other,
for example?




reply via email to

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