All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: Sander Eikelenboom <linux@eikelenboom.it>,
	Stefano Stabellini <stefano.stabellini@eu.citrix.com>,
	Ian Jackson <ian.jackson@eu.citrix.com>,
	samuel.thibault@ens-lyon.org, xen-devel@lists.xen.org
Subject: Re: [PATCH] stubdom: fix make clean and distclean on a freshly cloned tree
Date: Mon, 2 Mar 2015 14:15:43 +0000	[thread overview]
Message-ID: <1425305743.21151.44.camel@citrix.com> (raw)
In-Reply-To: <20150302111506.GA11855@zion.uk.xensource.com>

On Mon, 2015-03-02 at 11:15 +0000, Wei Liu wrote:
> > -include $(XEN_ROOT)/Config.mk
> > +
> > +ifeq (,$(findstring clean,$(MAKECMDGOALS)))
> > +  ifeq ($(wildcard $(MINI_OS)/Config.mk),)

> > +    $(error Please run `make mini-os-dir' in top-level directory)
> > +  endif
> > +  include $(XEN_ROOT)/Config.mk

I'm not sure why the inclusion of this apparently unrelated file
($(MINI_OS) vs $(XEN_ROOT) is conditionalised here.

If that wasn't here then the two ifeq's could be combined into something
like:

ifeq(,$(findstring clean,$(MAKECMDGOALS)$(wildcard $(MINI_OS)/Config.mk))

or is that too subtle?

> > +endif
> > +
> >  -include $(XEN_ROOT)/config/Stubdom.mk
> >  
> >  GNU_TARGET_ARCH:=$(XEN_TARGET_ARCH)
> > diff --git a/stubdom/c/Makefile b/stubdom/c/Makefile
> > index c646c26..b252dca 100644
> > --- a/stubdom/c/Makefile
> > +++ b/stubdom/c/Makefile
> > @@ -1,6 +1,8 @@
> >  XEN_ROOT = $(CURDIR)/../..
> >  
> > +ifeq (,$(findstring clean,$(MAKECMDGOALS)))
> >  include $(XEN_ROOT)/Config.mk

XEN_ROOT/Config.mk always exists. Did you misread it as MINI_OS?

(and in the next hunk too)

  reply	other threads:[~2015-03-02 14:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-02 11:09 [PATCH] stubdom: fix make clean and distclean on a freshly cloned tree Wei Liu
2015-03-02 11:15 ` Wei Liu
2015-03-02 14:15   ` Ian Campbell [this message]
2015-03-02 14:25     ` Wei Liu
2015-03-02 14:34       ` Ian Campbell

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=1425305743.21151.44.camel@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=linux@eikelenboom.it \
    --cc=samuel.thibault@ens-lyon.org \
    --cc=stefano.stabellini@eu.citrix.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.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.