help-make
[Top][All Lists]
Advanced

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

Re: How can I avoid duplication of code in makefiles?


From: Ken Smith
Subject: Re: How can I avoid duplication of code in makefiles?
Date: Fri, 12 Aug 2005 11:18:44 -0400
User-agent: Mutt/1.5.9i

Try factoring out the commonalities and "include" them.

  Ken

On Fri, Aug 12, 2005 at 05:42:10PM +0300, Angel Tsankov wrote:
> I've noticed that some of my makefiles differ only in:
> output file name;
> extension of source files;
> compiler that is to be invoked;
> compiler options;
> 
> All the rest is the same - variables, functions and targets.
> Provided this, how can I reduce duplication of code in makefiles?
> 
> Angel Tsankov
> address@hidden
> 
> 
> _______________________________________________
> Help-make mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/help-make




reply via email to

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