[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about include makefile
From: |
Alexandre Duret-Lutz |
Subject: |
Re: Question about include makefile |
Date: |
Thu, 13 Mar 2003 22:09:25 +0100 |
User-agent: |
Gnus/5.090016 (Oort Gnus v0.16) Emacs/21.2 (gnu/linux) |
>>> "Giuseppe" == Giuseppe Greco <address@hidden> writes:
[...]
Giuseppe> include $(zt_automake_mk)
Giuseppe> zt_automake_mk is just a variale set to
Giuseppe> /usr/local/share/z-tools/makefiles/automake.mk.
That explains it all. This won't work for two reasons.
1. include's argument must be a raw filename.
We don't support variables here.
(Except $(top_srcdir) and $(srcdir) for convenience.)
2. If you include a file in Makefile.am, this included file will be
distributed with your package for the same reason Makefile.am is
distributed. So this file should be *inside* your source tree,
or you will have surprises when you run `make dist'.
In short, copy automake.mk into your source tree, and include
it with
include automake.mk
or
include $(top_srcdir)/makefiles/automake.mk
[...]
--
Alexandre Duret-Lutz