From: Olaf Hering Subject: Re: [PATCH 08/13] tools/hotplug: use XEN_SCRIPT_DIR instead of hardcoded path Date: Wed, 27 Aug 2014 10:42:03 +0200 Message-ID: <20140827084203.GB5892@aepfle.de> References: <1406538316-29087-1-git-send-email-olaf@aepfle.de> <1406538316-29087-9-git-send-email-olaf@aepfle.de> <1409083665.28009.25.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1409083665.28009.25.camel@citrix.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: Ian Campbell Cc: Keir Fraser , Stefano Stabellini , Tim Deegan , Ian Jackson , xen-devel@lists.xen.org, Jan Beulich , Samuel Thibault List-Id: xen-devel@lists.xenproject.org On Tue, Aug 26, Ian Campbell wrote: > On Mon, 2014-07-28 at 11:05 +0200, Olaf Hering wrote: > > +++ b/tools/hotplug/Linux/Makefile > > @@ -32,18 +32,47 @@ XEN_SCRIPT_DATA += block-common.sh > > UDEV_RULES_DIR = $(CONFIG_DIR)/udev > > UDEV_RULES = xen-backend.rules $(UDEV_RULES-y) > > > > +USED_PATH = "_used_path.sh" > > +genpath-target = $(call buildmakevars2file,$(USED_PATH)) > > +$(eval $(genpath-target)) > I can't see where _used_path.sh is consumed. I will add a comment, has something todo with the need to rerun the rules if the PATHS do change. > > +%: %.in > > + set -e; \ > > + rm -f $@.new ; \ > > + sed 's|@@XEN_SCRIPT_DIR@@|$(XEN_SCRIPT_DIR)|g' $< >$@.new ; \ > > + $(call move-if-changed,$@.new,$@) > > Can you make these substitutions directly from tools/configure.ac? I > think Luis did something similar for the systemd stuff? Maybe, what I remmeber is that sed is used as well now. I have to rebase my series to staging and see how the result looks like. Olaf