From: Ian Campbell Subject: Re: [PATCH 02/12] Config.mk: replace dependency to genpath with actual target Date: Fri, 2 May 2014 11:43:42 +0100 Message-ID: <1399027422.32736.26.camel@kazak.uk.xensource.com> References: <1398328615-28461-1-git-send-email-olaf@aepfle.de> <1398328615-28461-3-git-send-email-olaf@aepfle.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1398328615-28461-3-git-send-email-olaf@aepfle.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Olaf Hering Cc: Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, 2014-04-24 at 10:36 +0200, Olaf Hering wrote: > genpath is a detail of buildmakevars2file. Replace the dependency to > genpath with the actual buildmakevars2file target. This change by itself > does not fix any bug. Upcoming changes will add dependencies to > $(target), but no rule exist to create $(target). > > With this change a rule for $(target) is added, which in turn depends on > genpath. No change in behaviour is expected by this patch. > > Signed-off-by: Olaf Hering Wrong CC again. > --- > Config.mk | 1 + > stubdom/Makefile | 16 ++++++++-------- > tools/hotplug/common/Makefile | 2 +- > tools/python/Makefile | 2 +- > 4 files changed, 11 insertions(+), 10 deletions(-) > > diff --git a/Config.mk b/Config.mk > index a26e964..eb3937c 100644 > --- a/Config.mk > +++ b/Config.mk > @@ -173,6 +173,7 @@ BUILD_MAKE_VARS := SBINDIR BINDIR LIBEXEC LIBDIR SHAREDIR PRIVATE_BINDIR \ > buildmakevars2file = $(eval $(call buildmakevars2file-closure,$(1))) > define buildmakevars2file-closure > .PHONY: genpath > + $(1): genpath > genpath: This seems like an odd construction. The genpath in the middle seems redundant with you change. Do you not just want the result to be: $(1): rm -f $(1).tmp $(foreach, etc... with no .PHONY-ness? Ian.