* [Qemu-devel] [PATCH] Call configure automatically when needed
@ 2009-04-05 19:59 Stefan Weil
2009-04-05 20:17 ` Avi Kivity
2009-04-15 14:47 ` Aurelien Jarno
0 siblings, 2 replies; 3+ messages in thread
From: Stefan Weil @ 2009-04-05 19:59 UTC (permalink / raw)
To: QEMU Developers, Anthony Liguori
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
Hello,
this patch calls configure automatically when configure
changed since the last time it was called.
If configure was never called, the user is told to do so.
Regards
Stefan
[-- Attachment #2: autoconfigure.patch --]
[-- Type: text/x-diff, Size: 955 bytes --]
Automatically rerun configure when it is needed.
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Index: trunk/Makefile
===================================================================
--- trunk.orig/Makefile 2009-04-05 21:43:15.000000000 +0200
+++ trunk/Makefile 2009-04-05 21:53:37.000000000 +0200
@@ -1,7 +1,13 @@
# Makefile for QEMU.
+ifneq ($(wildcard config-host.mak),)
include config-host.mak
include $(SRC_PATH)/rules.mak
+else
+config-host.mak:
+ @echo "Please call configure before running make!"
+ @exit 1
+endif
.PHONY: all clean cscope distclean dvi html info install install-doc \
recurse-all speed tar tarbin test
@@ -36,6 +42,12 @@
all: $(TOOLS) $(DOCS) recurse-all
+config-host.mak: configure
+ifneq ($(wildcard config-host.mak),)
+ @echo $@ is out-of-date, running configure
+ @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh
+endif
+
SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
subdir-%:
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Call configure automatically when needed
2009-04-05 19:59 [Qemu-devel] [PATCH] Call configure automatically when needed Stefan Weil
@ 2009-04-05 20:17 ` Avi Kivity
2009-04-15 14:47 ` Aurelien Jarno
1 sibling, 0 replies; 3+ messages in thread
From: Avi Kivity @ 2009-04-05 20:17 UTC (permalink / raw)
To: qemu-devel
Stefan Weil wrote:
> Hello,
>
> this patch calls configure automatically when configure
> changed since the last time it was called.
>
> If configure was never called, the user is told to do so.
>
>
Nice one!
--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Qemu-devel] [PATCH] Call configure automatically when needed
2009-04-05 19:59 [Qemu-devel] [PATCH] Call configure automatically when needed Stefan Weil
2009-04-05 20:17 ` Avi Kivity
@ 2009-04-15 14:47 ` Aurelien Jarno
1 sibling, 0 replies; 3+ messages in thread
From: Aurelien Jarno @ 2009-04-15 14:47 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-devel
On Sun, Apr 05, 2009 at 09:59:27PM +0200, Stefan Weil wrote:
> Hello,
>
> this patch calls configure automatically when configure
> changed since the last time it was called.
>
> If configure was never called, the user is told to do so.
>
> Regards
> Stefan
>
Thanks, applied.
> Automatically rerun configure when it is needed.
>
> Signed-off-by: Stefan Weil <weil@mail.berlios.de>
>
> Index: trunk/Makefile
> ===================================================================
> --- trunk.orig/Makefile 2009-04-05 21:43:15.000000000 +0200
> +++ trunk/Makefile 2009-04-05 21:53:37.000000000 +0200
> @@ -1,7 +1,13 @@
> # Makefile for QEMU.
>
> +ifneq ($(wildcard config-host.mak),)
> include config-host.mak
> include $(SRC_PATH)/rules.mak
> +else
> +config-host.mak:
> + @echo "Please call configure before running make!"
> + @exit 1
> +endif
>
> .PHONY: all clean cscope distclean dvi html info install install-doc \
> recurse-all speed tar tarbin test
> @@ -36,6 +42,12 @@
>
> all: $(TOOLS) $(DOCS) recurse-all
>
> +config-host.mak: configure
> +ifneq ($(wildcard config-host.mak),)
> + @echo $@ is out-of-date, running configure
> + @fgrep "Configured with:" $@ | sed s/.*Configured.with:.// | sh
> +endif
> +
> SUBDIR_RULES=$(patsubst %,subdir-%, $(TARGET_DIRS))
>
> subdir-%:
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-04-15 14:47 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-05 19:59 [Qemu-devel] [PATCH] Call configure automatically when needed Stefan Weil
2009-04-05 20:17 ` Avi Kivity
2009-04-15 14:47 ` Aurelien Jarno
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).