[Top][All Lists]

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

[bug #16145] .SECONDARY: prevents non-existent dependency from forcing r

From: Paul D. Smith
Subject: [bug #16145] .SECONDARY: prevents non-existent dependency from forcing rebuild
Date: Tue, 21 Mar 2006 16:35:03 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv: Gecko/20060124 Firefox/

Follow-up Comment #3, bug #16145 (project make):

I think you have two choices, at least one of which should work :-).  Either
way I think you have to get the .SECONDARY: global target out of there.

Anyway, you can do two things: first, you can mention all the files that
would otherwise be considered intermediate and removed (which is what you're
trying to avoid by using the global .SECONDARY:, right?) as prerequisites of
a target.  It doesn't take much at all to convince make that a target is not
intermediate: _any_ mention of it will do the trick.  You don't really show
in your example why you want .SECONDARY: globally: none of the targets there
would be considered intermediate anyway.  But suppose you had some, you could
create a new target which depended on the intermediate files.  This target
might even be USEFUL in some situations, if someone just wanted to build
those files.

The other thing you can do is change the global .SECONDARY: to a .SECONDARY
with a list of just those items you want to be considered secondary...  and
hopefully that wouldn't include the foo.h ones :-/.  This would solve the
problem as well.

I think to be more specific we'd need to understand why you needed global
.SECONDARY: in the first place.


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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