[patch] Regenerate Makefile.config automatically if config.status has changed.
Kalle Olavi Niemitalo <[email protected]>
| Newsgroups | gmane.comp.web.links |
|---|---|
| Message-ID | <[email protected]> |
Regenerate Makefile.config automatically if config.status has changed. Thus, if I edit e.g. the CFLAGS settings in configure.in: - Makefile runs autoconf to update configure. - Makefile runs config.status --recheck to update config.status. - Makefile runs config.status to update Makefile.config. (GNU Make implicitly tries to keep included makefiles up to date.) - src/**/Makefile use the CFLAGS from the updated Makefile.config. (Source files will not be automatically recompiled, however. If that is ever implemented, Makefile.config should be given a separate timestamp file like config.h has.) --- commit f6676baf0d70728f84f46333a2fec1f59393ecbf tree 72b361365c13c3696bc8d4859301f7011767db52 parent 6d324509e18bd810e3465c56734c021cd81ab042 author Kalle Olavi Niemitalo <[email protected]> Tue, 06 Dec 2005 15:15:27 +0200 committer Kalle Olavi Niemitalo <[email protected]> Tue, 06 Dec 2005 15:15:27 +0200 Makefile | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/Makefile b/Makefile index 1c788d5..bf5296e 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,13 @@ $(ACLOCAL_M4): $(top_srcdir)/configure.i $(top_srcdir)/configure: $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOCONF) +# Makefile.config doesn't have need a separate stamp file because +# its timestamp doesn't directly cause other files to be rebuilt. +$(top_builddir)/Makefile.config: $(top_srcdir)/Makefile.config.in $(top_builddir)/config.status + cd $(top_builddir) \ + && CONFIG_FILES=Makefile.config CONFIG_HEADERS= \ + $(SHELL) ./config.status + $(top_builddir)/config.h: $(top_builddir)/stamp-h @cd $(top_builddir) && \ if test ! -f $@; then \ !-------------------------------------------------------------flip- Fix comments added in my previous commit. (It was commit f6676baf0d70728f84f46333a2fec1f59393ecbf.) --- commit d66e3b41a812583c63472a1a012672f9a831659e tree 873e0e8c87bb458a7df8d04a60b0dc0ed8c8fdd4 parent f6676baf0d70728f84f46333a2fec1f59393ecbf author Kalle Olavi Niemitalo <[email protected]> Tue, 06 Dec 2005 15:18:11 +0200 committer Kalle Olavi Niemitalo <[email protected]> Tue, 06 Dec 2005 15:18:11 +0200 Makefile | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index bf5296e..08d92fe 100644 --- a/Makefile +++ b/Makefile @@ -18,8 +18,8 @@ $(ACLOCAL_M4): $(top_srcdir)/configure.i $(top_srcdir)/configure: $(top_srcdir)/configure.in $(ACLOCAL_M4) cd $(top_srcdir) && $(AUTOCONF) -# Makefile.config doesn't have need a separate stamp file because -# its timestamp doesn't directly cause other files to be rebuilt. +# Makefile.config doesn't need a separate timestamp file because +# touching it doesn't directly cause other files to be rebuilt. $(top_builddir)/Makefile.config: $(top_srcdir)/Makefile.config.in $(top_builddir)/config.status cd $(top_builddir) \ && CONFIG_FILES=Makefile.config CONFIG_HEADERS= \ _______________________________________________ elinks-dev mailing list [email protected] http://linuxfromscratch.org/mailman/listinfo/elinks-dev
signature.asc
(application/pgp-signature, 188 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBDlZqpHm9IGt60eMgRAlPKAJ9O5iUL4nTpc1PQsm2oyZEnstEYJgCeM5A/ jOcVtQW4WHiLaoTiaBVuxN8= =PMYi -----END PGP SIGNATURE-----