automake-patches
[Top][All Lists]
Advanced

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

Re: RFC: defining aclocal.m4/configure/config.status rebuild rules in al


From: Raja R Harinath
Subject: Re: RFC: defining aclocal.m4/configure/config.status rebuild rules in all directories
Date: Thu, 24 Apr 2003 14:42:11 -0500
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (gnu/linux)

Hi,

Alexandre Duret-Lutz <address@hidden> writes:

> +## aclocal.m4 must be built by the top-level Makefile, because this is
> +## where the user is expected to define $(ACLOCAL_AMFLAGS).
> +if %?REGEN-ACLOCAL-M4%
> +$(ACLOCAL_M4): %MAINTAINER-MODE% $(top_srcdir)/%CONFIGURE-AC% 
> %ACLOCAL_M4_DEPS%
> +?TOPDIR_P?   $(ACLOCAL) $(ACLOCAL_AMFLAGS)
> +?!TOPDIR_P?  cd $(top_srcdir) && $(MAKE) $(AM_MAKEFLAGS) '$$(ACLOCAL_M4)'
> +endif %?REGEN-ACLOCAL-M4%

I needed the following patch to get it to work in an non-$srcdir
build.

  Index: configure.am
  ===================================================================
  RCS file: /cvs/automake/automake/lib/am/configure.am,v
  retrieving revision 1.17
  diff -u -p -u -r1.17 configure.am
  --- configure.am        24 Apr 2003 18:39:32 -0000      1.17
  +++ configure.am        24 Apr 2003 19:33:55 -0000
  @@ -88,8 +88,8 @@ $(top_srcdir)/configure: %MAINTAINER-MOD
   ## where the user is expected to define $(ACLOCAL_AMFLAGS).
   if %?REGEN-ACLOCAL-M4%
   $(ACLOCAL_M4): %MAINTAINER-MODE% $(top_srcdir)/%CONFIGURE-AC% 
%ACLOCAL_M4_DEPS%
  -?TOPDIR_P?     $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  -?!TOPDIR_P?    cd $(top_srcdir) && $(MAKE) $(AM_MAKEFLAGS) '$$(ACLOCAL_M4)'
  +?TOPDIR_P?     cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  +?!TOPDIR_P?    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) '$$(ACLOCAL_M4)'
   endif %?REGEN-ACLOCAL-M4%

GNU make 3.81a2 wasn't too happy with the '$$(ACLOCAL_M4)' though.

  make[1]: *** No rule to make target `$(ACLOCAL_M4)'.  Stop.

I don't know if this is a feature or a bug :-) You may need to put in
topdir/Makefile.in

  .PHONY: am--rebuild-aclocal
  am--rebuild-aclocal: $(ACLOCAL_M4)

- Hari
-- 
Raja R Harinath ------------------------------ address@hidden




reply via email to

[Prev in Thread] Current Thread [Next in Thread]