> From: "Mark Galeck (CW)" <[email protected]>
> CC: "[email protected]" <[email protected]>
> Date: Fri, 2 Mar 2012 01:46:28 -0800
> 
> Yes, thank you, so what you are saying, translated to my situation, is
> 
> Goal1 goal2: phony
>       <recipe for goal2>

No, that's not what I was saying.  The above doesn't use pattern
rules.  You must use pattern rules for what I said to work for you.

> This is still inefficient, because, if the user wants to make both
> goals: goal1 and goal2, the recipe will be attempted twice.

Because you didn't use pattern rules.  Only for pattern rules, GNU
Make knows to invoke the recipe only once.

>  I only want one attempt.  I want make to know goal1 will be made as a side 
> effect of goal2.

Then make that a pattern rule.

_______________________________________________
Help-make mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to