commit 78128508937af187889806b9be3de0d49b8915fa Author: Christoph Egger Date: Fri Feb 8 12:44:12 2013 +0000 tools/pygrub: Do not override pygrub with a symbolic link if $(BINDIR) and $(PRIVATE_BINDIR) are the same. Signed-off-by: Christoph Egger diff --git a/tools/pygrub/Makefile b/tools/pygrub/Makefile index 039f7f7..c3b34d7 100644 --- a/tools/pygrub/Makefile +++ b/tools/pygrub/Makefile @@ -15,8 +15,8 @@ install: all --install-scripts=$(PRIVATE_BINDIR) --force $(INSTALL_DIR) $(DESTDIR)/var/run/xend/boot set -e; if [ "`readlink -f $(DESTDIR)/$(BINDIR)`" != \ - "`readlink -f $(PRIVATE_BINDIR)`" ]; then \ - ln -sf $(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \ + "`readlink -f $(DESTDIR)/$(PRIVATE_BINDIR)`" ]; then \ + ln -sf $(DESTDIR)/$(PRIVATE_BINDIR)/pygrub $(DESTDIR)/$(BINDIR); \ fi .PHONY: clean