I've written a makefile named automake.mk which contains the following>>> "Giuseppe" == Giuseppe Greco <[EMAIL PROTECTED]> writes: Giuseppe> Hi all, Giuseppe> I wrote an Include makefile containing Giuseppe> Autoconf statements like EXTRA_DIST, SUBDIRS, etc. Giuseppe> Well, when I include the makefile above into another Giuseppe> makefile, Automake doesn't set these variables... Hi Giuseppe, What do you mean by "doesn't set"? Could you explain what you got, how you got it, and what you expected?
statements:
...
MAINTAINERCLEANFILES = \
aclocal.m4 \
configure \
install-sh \
Makefile.in \
missing \
mkinstalldirs \
confdefs.h \
$(PACKAGE)-$(VERSION).tar.gz
DISTCLEANFILES = \
$(PACKAGE)-$(VERSION).tar.gz
...
Then, I've written a Makefile.am like this:
## Makefile.am
##
## description : File to be processed with 'automake'
## to produce 'Makefile.in'.
## begin : July 1, 2002
## author : Giuseppe Greco
SUBDIRS = \
src
all-local: html pdf ps
include $(zt_automake_mk)
zt_automake_mk is just a variale set to
/usr/local/share/z-tools/makefiles/automake.mk.
Well, after running libtoolize, aclocal, automake,
and autoconf, the variables set in automake.mk
have no effects; for instance, when I issue the
command make maintainer-clean, the files listed
in MAINTAINERCLEANFILES are not removed.
On the other side, if I put the statement contained
in makefile.mk directly in my Makefile.ma, all works
fine...
That is it!
Gius_.
[...]
---------------------------------------------------
--------------------------------------------------- |
|||||||||||
