Simple Automake question



Hi,

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

since the source needs to know where to find the pixmaps and the
pixmaps/Makefile needs to know where to install them. Naturally, I
would like to get rid of the first two definitions and only define the
path in the toplevel Makefile.am.

It appears to be easy. But how?

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



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