direct-io.hg

changeset 7388:a0ec7370eec0

Fix installation decision to make the DISTDIR and DESTDIR absolute before
comparing them.

Signed-off-by: Ewan Mellor <ewan@xensource.com>
author emellor@leeni.uk.xensource.com
date Sat Oct 15 12:55:03 2005 +0100 (2005-10-15)
parents bb127c984f74
children 4c9dbbb5fe3d
files tools/examples/Makefile
line diff
     1.1 --- a/tools/examples/Makefile	Sat Oct 15 12:52:38 2005 +0100
     1.2 +++ b/tools/examples/Makefile	Sat Oct 15 12:55:03 2005 +0100
     1.3 @@ -32,7 +32,9 @@ XEN_HOTPLUG_SCRIPTS = xen-backend.agent
     1.4  UDEV_RULES_DIR = /etc/udev/rules.d
     1.5  UDEV_RULES = xen-backend.rules
     1.6  
     1.7 -ifeq ($(findstring $(DISTDIR),$(DESTDIR)),$(DISTDIR))
     1.8 +DI = $(shell readlink -f $(DISTDIR))
     1.9 +DE = $(shell readlink -f $(DESTDIR))
    1.10 +ifeq ($(findstring $(DI),$(DE)),$(DI))
    1.11  HOTPLUGS=install-hotplug install-udev
    1.12  else
    1.13  ifeq ($(shell [ -x /sbin/udev ] && [ ! -z `udev -V` ] && [ `/sbin/udev -V` -ge 059 ] && echo 1),1)