From: Ralf Wildenhues Date: Sat, 10 Jun 2006 07:36:25 +0000 (+0000) Subject: Fix libltdl to always have all generated files up to date. X-Git-Tag: release-2-1b~278 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b785acfbefc3169c11216573b233d7a3797f2322;p=thirdparty%2Flibtool.git Fix libltdl to always have all generated files up to date. * Makefile.am (all-local): Depend on all generated files in libltdl, namely... (libltdl/aclocal.m4, libltdl/configure, libltdl/config-h.in): ...these. List explicitly, including dependencies and rebuilding rules, using... (sub_aclocal_m4_deps, sub_configure_deps): ...these new variables. Report by Dan Lacher . --- diff --git a/ChangeLog b/ChangeLog index 91e12268e..84bb4a2e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2006-06-10 Ralf Wildenhues + + Fix libltdl to always have all generated files up to date. + + * Makefile.am (all-local): Depend on all generated files in + libltdl, namely... + (libltdl/aclocal.m4, libltdl/configure, libltdl/config-h.in): + ...these. List explicitly, including dependencies and + rebuilding rules, using... + (sub_aclocal_m4_deps, sub_configure_deps): ...these new + variables. + Report by Dan Lacher . + 2006-06-09 Ralf Wildenhues * Makefile.am (install-data-local): Do not use $(INSTALL_DATA) diff --git a/Makefile.am b/Makefile.am index 5efcb97b9..c353f98f8 100644 --- a/Makefile.am +++ b/Makefile.am @@ -219,6 +219,16 @@ $(srcdir)/libltdl/Makefile.am: $(srcdir)/libltdl/Makefile.inc -e 's,\$$(libltdl_,$$(,' >> $$out; chmod a-w $(srcdir)/libltdl/Makefile.am + +## Unfortunately, all this bogeyness means that we have to manually +## keep the generated files in libltdl up to date. +all-local: $(srcdir)/libltdl/aclocal.m4 \ + $(srcdir)/libltdl/stamp-mk \ + $(srcdir)/libltdl/configure \ + $(srcdir)/libltdl/config-h.in + +EXTRA_DIST += $(srcdir)/libltdl/stamp-mk $(m4dir)/lt~obsolete.m4 + $(srcdir)/libltdl/Makefile.in: $(srcdir)/libltdl/Makefile.am \ $(srcdir)/libltdl/aclocal.m4 cd $(srcdir)/libltdl && $(AUTOMAKE) Makefile @@ -231,20 +241,27 @@ $(srcdir)/libltdl/stamp-mk: $(srcdir)/libltdl/Makefile.in mv -f Makefile.inT Makefile.in echo stamp > $@ -EXTRA_DIST += $(srcdir)/libltdl/stamp-mk $(m4dir)/lt~obsolete.m4 +sub_aclocal_m4_deps = \ + $(srcdir)/libltdl/configure.ac \ + $(m4dir)/libtool.m4 \ + $(m4dir)/ltoptions.m4 \ + $(m4dir)/ltdl.m4 \ + $(srcdir)/$(m4dir)/ltversion.m4 \ + $(m4dir)/ltsugar.m4 \ + $(m4dir)/argz.m4 \ + $(m4dir)/lt~obsolete.m4 + +sub_configure_deps = $(sub_aclocal_m4_deps) $(srcdir)/libltdl/aclocal.m4 -$(srcdir)/libltdl/aclocal.m4: \ - $(m4dir)/libtool.m4 \ - $(m4dir)/ltoptions.m4 \ - $(m4dir)/ltdl.m4 \ - $(srcdir)/$(m4dir)/ltversion.m4 \ - $(m4dir)/ltsugar.m4 \ - $(m4dir)/argz.m4 \ - $(m4dir)/lt~obsolete.m4 +$(srcdir)/libltdl/aclocal.m4: $(sub_aclocal_m4_deps) cd $(srcdir)/libltdl && $(ACLOCAL) -I m4 -# We want the libltdl files to be up to date as much as possible. -all-local: $(srcdir)/libltdl/stamp-mk +$(srcdir)/libltdl/configure: $(sub_configure_deps) + cd $(srcdir)/libltdl && $(AUTOCONF) + +$(srcdir)/libltdl/config-h.in: $(sub_configure_deps) + cd $(srcdir)/libltdl && $(AUTOHEADER) + touch $@ ## -------- ##