Re: Simple Automake question
- From: James Henstridge <james daa com au>
- To: Ole Laursen <olau hardworking dk>
- Cc: gnome-devel-list gnome org
- Subject: Re: Simple Automake question
- Date: Thu, 07 Aug 2003 08:54:46 +0800
On 07/08/03 05:51, Ole Laursen wrote:
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?
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).
James.
--
Email: james daa com au
WWW: http://www.daa.com.au/~james/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]