aboutsummaryrefslogtreecommitdiffstats
path: root/tools/examples/Makefile
diff options
context:
space:
mode:
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-21 22:57:47 +0100
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>2006-03-21 22:57:47 +0100
commit8fa9ee917849e4779ff05c6579fcd8f9aefbf0ba (patch)
tree8f2ab5b813b6536412b2f2965bbf7e3a8cf85adf /tools/examples/Makefile
parent2e327ea4ab3086629ddc4dfba477bcce637e2275 (diff)
downloadxen-8fa9ee917849e4779ff05c6579fcd8f9aefbf0ba.tar.gz
xen-8fa9ee917849e4779ff05c6579fcd8f9aefbf0ba.tar.bz2
xen-8fa9ee917849e4779ff05c6579fcd8f9aefbf0ba.zip
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>
Diffstat (limited to 'tools/examples/Makefile')
-rw-r--r--tools/examples/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/examples/Makefile b/tools/examples/Makefile
index 6e71f563bf..37a94b6329 100644
--- a/tools/examples/Makefile
+++ b/tools/examples/Makefile
@@ -38,8 +38,8 @@ XEN_HOTPLUG_SCRIPTS = xen-backend.agent
UDEV_RULES_DIR = /etc/udev
UDEV_RULES = xen-backend.rules
-DI = $(shell readlink -f $(DISTDIR))
-DE = $(shell readlink -f $(DESTDIR))
+DI = $(if $(DISTDIR),$(shell readlink -f $(DISTDIR)),)
+DE = $(if $(DESTDIR),$(shell readlink -f $(DESTDIR)),)
ifeq ($(findstring $(DI),$(DE)),$(DI))
HOTPLUGS=install-hotplug install-udev
else