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: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=16145> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/ _______________________________________________ Bug-make mailing list Bug-make@gnu.org http://lists.gnu.org/mailman/listinfo/bug-make