[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: make claims foo cannot be built
From: |
Paul Smith |
Subject: |
Re: make claims foo cannot be built |
Date: |
Tue, 29 Dec 2009 11:08:16 -0500 |
On Tue, 2009-12-29 at 13:02 +0000, Ian Lynagh wrote:
> Can anyone explain why make claims that foo cannot be built with this
> Makefile please? Looking at the "Implicit Rule Search Algorithm" in
> the info page it looks to me like it should work fine.
>
> ##############################
> default: foo
> @echo default
>
> f%: bar
> @echo This is $@ with $*
If the file "bar" does not exist then you'll get the message you see
since there is no way for make to know how to build bar, and as a result
this implicit rule cannot match.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.mad-scientist.net
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist