aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/pygrub/Makefile')
-rw-r--r--tools/pygrub/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile
index 039f7f7e4a..0191638ad1 100644
--- a/tools/pygrub/Makefile
+++ b/tools/pygrub/Makefile
@@ -14,7 +14,8 @@ install: all
$(PYTHON_PREFIX_ARG) --root="$(DESTDIR)" \
--install-scripts=$(PRIVATE_BINDIR) --force
$(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot
- set -e; if [ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \
+ set -e; if [ $(BINDIR) != $(PRIVATE_BINDIR) -a \
+ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \
"`readlink -f $(PRIVATE_BINDIR)`" ]; then \
ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \
fi