From: Ian Jackson Subject: Re: [PATCH] libxl: add missing dependencies of libxl.h Date: Fri, 7 Sep 2012 11:33:30 +0100 Message-ID: <20553.52602.892916.502689@mariner.uk.xensource.com> References: <1347007260.30018.39.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1347007260.30018.39.camel@zakaz.uk.xensource.com> 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 Campbell , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH] libxl: add missing dependencies of libxl.h"): > On Thu, 2012-09-06 at 18:14 +0100, Olaf Hering wrote: > > libxl: add missing dependencies of libxl.h This is not correct. A dependency in the sense of make is a thing which is used to construct the target file, not a thing which the target file's contents refers to. The correct fix is, I think, this: diff --git a/tools/libxl/Makefile b/tools/libxl/Makefile index a9d9ec6..f48e304 100644 --- a/tools/libxl/Makefile +++ b/tools/libxl/Makefile @@ -119,7 +119,7 @@ libxl.api-ok: check-libxl-api-rules _libxl.api-for-check $(PERL) $^ touch $@ -_%.api-for-check: %.h +_%.api-for-check: %.h $(filter-out %.api-ok, $(AUTOINCS)) $(CC) $(CPPFLAGS) $(CFLAGS) $(CFLAGS_$*.o) -c -E $< $(APPEND_CFLAGS) \ -DLIBXL_EXTERNAL_CALLERS_ONLY=LIBXL_EXTERNAL_CALLERS_ONLY \ >$@.new Can you confirm that this fixes it for you ? Ian.