[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Targets not being built
From: |
Paul Smith |
Subject: |
Re: Targets not being built |
Date: |
Thu, 17 Nov 2011 02:19:34 -0500 |
On Wed, 2011-11-16 at 23:44 -0600, Edgar wrote:
> Does anyone know what I am doing wrong?
Since you don't show us the values of the variables you're using in the
example it's impossible to say.
But a few things: first, the rule you provide is for files that match
%.hpp but your output shows a file "key_handler.h" which won't match
that pattern.
Second, the output shows clearly that make did NOT find an implicit rule
to build the installed file, which also implies your pattern rules are
wrong: you can see the ones make matched against and yours is not there.
Finally, by the documentation if make finds a target with no recipe or
prerequisites, make assumes it to be up to date; see "Rules Without
Commands or Prerequisites":
If a rule has no prerequisites or commands, and the target of
the rule is a nonexistent file, then `make' imagines this target
to have been updated whenever its rule is run. This implies
that all targets depending on this one will always have their
commands run.
Maybe that's what's happening? Again without a fully self-contained
example we can't say for sure.
--
-------------------------------------------------------------------------------
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