[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] Call configure automatically when needed
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH] Call configure automatically when needed |
Date: |
Wed, 15 Apr 2009 16:47:46 +0200 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
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 <address@hidden>
>
> 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
address@hidden http://www.aurel32.net