ia64/xen-unstable

changeset 9381:fbc3a2657fef

Prevent a stray error message in the case that either DISTDIR or
DESTDIR is empty, by preventing readlink from being called in that
case.

Another option would be to use readlink -s, but that has the
undesirable effect of staying silent in situations other than empty
DISTDIR/DESTDIR

Signed-off-by: Aron Griffis <aron@hp.com>
author kaf24@firebug.cl.cam.ac.uk
date Tue Mar 21 22:57:47 2006 +0100 (2006-03-21)
parents a6a5a1b963e8
children e995d090bba9
files tools/examples/Makefile
line diff
     1.1 --- a/tools/examples/Makefile	Tue Mar 21 22:55:29 2006 +0100
     1.2 +++ b/tools/examples/Makefile	Tue Mar 21 22:57:47 2006 +0100
     1.3 @@ -38,8 +38,8 @@ XEN_HOTPLUG_SCRIPTS = xen-backend.agent
     1.4  UDEV_RULES_DIR = /etc/udev
     1.5  UDEV_RULES = xen-backend.rules
     1.6  
     1.7 -DI = $(shell readlink -f $(DISTDIR))
     1.8 -DE = $(shell readlink -f $(DESTDIR))
     1.9 +DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),)
    1.10 +DE = $(if $(DESTDIR),$(shell readlink -f $(DESTDIR)),)
    1.11  ifeq ($(findstring $(DI),$(DE)),$(DI))
    1.12  HOTPLUGS=install-hotplug install-udev
    1.13  else