This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Question about include makefile


>>> "Giuseppe" == Giuseppe Greco <giuseppe dot greco at agamura dot com> 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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]