[prev in list] [next in list] [prev in thread] [next in thread]
List: elinks-dev
Subject: [elinks-dev] [patch] Regenerate Makefile.config automatically if
From: Kalle Olavi Niemitalo <kon () iki ! fi>
Date: 2005-12-06 13:56:25
Message-ID: 873bl6codv.fsf () Astalo ! kon ! iki ! fi
[Download RAW message or body]
[Attachment #2 (multipart/signed)]
Content-Transfer-Encoding: quoted-printable
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 <kon@iki.fi> Tue, 06 Dec 2005 15:15:27 +0200
committer Kalle Olavi Niemitalo <kalle@Astalo.kon.iki.fi> 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 <kon@iki.fi> Tue, 06 Dec 2005 15:18:11 +0200
committer Kalle Olavi Niemitalo <kalle@Astalo.kon.iki.fi> 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= \
[Attachment #5 (application/pgp-signature)]
_______________________________________________
elinks-dev mailing list
elinks-dev@linuxfromscratch.org
http://linuxfromscratch.org/mailman/listinfo/elinks-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic