Re: Simple Automake question



James Henstridge <james daa com au> writes:

[...]

> >I need a bit of advice on how to define a constant in more than one
> >Makefile.am. Currently, I have
> >
> >  pixmaps/Makefile.am:    pixmapdir = $(datadir)/$(PACKAGE)/pixmaps
> >  src/Makefile.am:        pixmapdir = $(datadir)/$(PACKAGE)/pixmaps
> >  Makefile.am:            pixmapdir = $(datadir)/$(PACKAGE)/pixmaps

[...]

> If you are using a modern automake (not 1.4), you can put the
> following in your Makefile.am:
>     include $(top_srcdir)/common.mk
> 
> And automake will expand that when creating the Makefile.in (so you
> can even put automake directives into the included file).

OK, thanks! I'll investigate that.

-- 
Ole Laursen
http://www.cs.auc.dk/~olau/



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