On Fri, 2011-01-28 at 12:01 +0100, Klaus Rudolph wrote:
> %.x: %.yy
> <do something>
>
> %.x: %.abc
> <do something>
>
> I want to use <do something> for both rules without rewriting it.
Use a variable:
SOMETHING = <do something>
%.x : %.yy
$(SOMETHING)
%.x : %.abc
$(SOMETHING)
--
-------------------------------------------------------------------------------
Paul D. Smith <[email protected]> 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
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make