On Fri, Dec 31, 2010 at 03:03:03PM -0500, Charles Marcus wrote:

> On 2010-12-29 12:45 PM, Victor Duchovni wrote:
> > On Wed, Dec 29, 2010 at 08:29:18AM -0500, Charles Marcus wrote:
> >> I was wondering if it is possible to 'include' the contents of a file in
> >> the mysql*.cf map files (although I guess if you can with these you can
> >> with others)...
> 
> > Use make(1) (and/or if you miss Sendmail's .mc files, m4) to construct
> > the target file from multiple input files.
> > 
> >     M4 = m4
> >     mv = mv
> >     .SUFFIXES: .cf .mc
> >     .mc.cf:
> >             ${RM} $...@.tmp
> >             ${M4} $< > $...@.tmp
> >             ${MV} $...@.tmp $@
> 
> I've been meaning to learn how to use make files to automate things like
> this, so maybe I'll have time after the holidays to do so...

If you do use my sample Makefile, its "mv = mv" macro needs to use
upper-case "MV = mv" for the variable name.

-- 
        Viktor.

Reply via email to