aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libxc/Makefile')
-rw-r--r--tools/libxc/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/libxc/Makefile b/tools/libxc/Makefile
index d25e653467..e27556349e 100644
--- a/tools/libxc/Makefile
+++ b/tools/libxc/Makefile
@@ -66,8 +66,8 @@ mk-symlinks:
ln -sf ../../$(LINUX_ROOT)/include/asm-xen/linux-public/*.h . )
install: all
- $(INSTALL_DIR) $(DESTDIR)/usr/lib
- $(INSTALL_DIR) $(DESTDIR)/usr/include
+ [ -d $(DESTDIR)/usr/lib ] || $(INSTALL_DIR) $(DESTDIR)/usr/lib
+ [ -d $(DESTDIR)/usr/include ] || $(INSTALL_DIR) $(DESTDIR)/usr/include
$(INSTALL_PROG) $(LIB) $(DESTDIR)/usr/lib
ln -sf libxc.so.$(MAJOR).$(MINOR) $(DESTDIR)/usr/lib/libxc.so.$(MAJOR)
ln -sf libxc.so.$(MAJOR) $(DESTDIR)/usr/lib/libxc.so