From 8fa9ee917849e4779ff05c6579fcd8f9aefbf0ba Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 21 Mar 2006 22:57:47 +0100 Subject: 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 --- tools/examples/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/examples/Makefile') 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 -- cgit v1.2.3