From: Stefan Weil <weil@mail.berlios.de>
To: QEMU Developers <qemu-devel@nongnu.org>,
Anthony Liguori <anthony@codemonkey.ws>
Subject: [Qemu-devel] [PATCH] Call configure automatically when needed
Date: Sun, 05 Apr 2009 21:59:27 +0200 [thread overview]
Message-ID: <49D90D9F.1050809@mail.berlios.de> (raw)
[-- 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-%:
next reply other threads:[~2009-04-05 19:59 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-05 19:59 Stefan Weil [this message]
2009-04-05 20:17 ` [Qemu-devel] [PATCH] Call configure automatically when needed Avi Kivity
2009-04-15 14:47 ` Aurelien Jarno
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49D90D9F.1050809@mail.berlios.de \
--to=weil@mail.berlios.de \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.