[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fatal errors for missing include files.
From: |
Paul D. Smith |
Subject: |
Re: fatal errors for missing include files. |
Date: |
Tue, 31 Aug 2004 09:47:21 -0400 |
%% "Ian Dunbar" <address@hidden> writes:
id> Ok, but I am surprised you don't you see any problem (bug) with
id> the current way?
Not really. The times where it makes any difference are very few, and
the performance penalty that would be incurred to re-invoke make after
each makefile was recreated could be quite large.
id> I don't really understand why does adding the order
id> only-prerequsite like this solve the problem, if make truly does
id> not re-read the makefiles between remaking them?
Heh. You don't believe me? :). You can try adding $(warning ...) lines
to your various makefiles and seeing when they get printed, if you
like. Also, you can use make's debugging mode (-d) to see more info.
id> subsub.mk: | sub.mk
id> include subsub.mk
This has nothing to do with the order-only prerequisite; if you removed
it you'd see the same behavior.
This is because you've declared the target subsub.mk as an empty
target; once you do that it's no longer unknown to make. See the GNU
make manual section on empty target files.
--
-------------------------------------------------------------------------------
Paul D. Smith <address@hidden> Find some GNU make tips at:
http://www.gnu.org http://make.paulandlesley.org
"Please remain calm...I may be mad, but I am a professional." --Mad Scientist