Makefile: more fix for #1312
diff --git a/Makefile b/Makefile
index 060b813..1d3c9f2 100644
--- a/Makefile
+++ b/Makefile
@@ -409,15 +409,15 @@
endif
mkdir -p $(DESTDIR)$(INCDIR)/$(LIBNAME)
$(INSTALL_DATA) include/capstone/*.h $(DESTDIR)$(INCDIR)/$(LIBNAME)
- mkdir -p $(DESTDIR)$(PKGCFGDIR)
- $(INSTALL_DATA) $(PKGCFGF) $(DESTDIR)$(PKGCFGDIR)
- mkdir -p $(DESTDIR)$(BINDIR)
- $(INSTALL_LIB) cstool/cstool $(DESTDIR)$(BINDIR)
+ mkdir -p $(PKGCFGDIR)
+ $(INSTALL_DATA) $(PKGCFGF) $(PKGCFGDIR)
+ mkdir -p $(BINDIR)
+ $(INSTALL_LIB) cstool/cstool $(BINDIR)
uninstall:
rm -rf $(DESTDIR)$(INCDIR)/$(LIBNAME)
rm -f $(DESTDIR)$(LIBDIR)/lib$(LIBNAME).*
- rm -f $(DESTDIR)$(PKGCFGDIR)/$(LIBNAME).pc
+ rm -f $(PKGCFGDIR)/$(LIBNAME).pc
rm -f $(DESTDIR)$(BINDIR)/cstool
clean: