From: Aurelien Jarno <aurelien@aurel32.net>
To: Mike Frysinger <vapier@gentoo.org>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] allow make {dist, }clean work w/out configure
Date: Fri, 19 Oct 2012 21:32:17 +0200 [thread overview]
Message-ID: <20121019193217.GD22247@ohm.aurel32.net> (raw)
In-Reply-To: <1347826033-4330-1-git-send-email-vapier@gentoo.org>
On Sun, Sep 16, 2012 at 04:07:13PM -0400, Mike Frysinger wrote:
> There's no reason to require configure to run before running a clean
> target, so check MAKECMDGOALS before.
>
> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
> ---
> v2
> - handle edge cases
>
> Makefile | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/Makefile b/Makefile
> index 1cd5bc8..0a37369 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -14,9 +14,11 @@ config-host.mak: $(SRC_PATH)/configure
> @sed -n "/.*Configured with/s/[^:]*: //p" $@ | sh
> else
> config-host.mak:
> +ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
> @echo "Please call configure before running make!"
> @exit 1
> endif
> +endif
>
> GENERATED_HEADERS = config-host.h trace.h qemu-options.def
> ifeq ($(TRACE_BACKEND),dtrace)
> @@ -398,7 +400,9 @@ qemu-doc.dvi qemu-doc.html qemu-doc.info qemu-doc.pdf: \
>
> # Add a dependency on the generated files, so that they are always
> # rebuilt before other object files
> +ifneq ($(filter-out %clean,$(MAKECMDGOALS)),$(if $(MAKECMDGOALS),,fail))
> Makefile: $(GENERATED_HEADERS)
> +endif
>
> # Include automatically generated dependency files
> # Dependencies in Makefile.objs files come from our recursive subdir rules
Thanks, applied.
--
Aurelien Jarno GPG: 1024D/F1BCDB73
aurelien@aurel32.net http://www.aurel32.net
prev parent reply other threads:[~2012-10-19 19:32 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-09-16 0:30 [Qemu-devel] [PATCH] allow make {dist,}clean work w/out configure Mike Frysinger
2012-09-16 9:52 ` [Qemu-devel] [PATCH] allow make {dist, }clean " Paolo Bonzini
2012-09-16 20:03 ` Mike Frysinger
2012-09-17 7:55 ` Paolo Bonzini
2012-09-16 20:07 ` [Qemu-devel] [PATCH v2] " Mike Frysinger
2012-09-17 8:46 ` Paolo Bonzini
2012-10-19 19:32 ` Aurelien Jarno [this message]
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=20121019193217.GD22247@ohm.aurel32.net \
--to=aurelien@aurel32.net \
--cc=qemu-devel@nongnu.org \
--cc=vapier@gentoo.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 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).