ref: 4780c6a8f8f9ecc026ccbc18cf38e61a18ba7858
parent: df1435835a6bf5eb9776980b11dd340fbb2e439f
author: Martin Storsjö <[email protected]>
date: Mon Mar 16 11:47:32 EDT 2015
Remove the extra slash between $(DESTDIR) and $(PREFIX) If DESTDIR is set, it needs to include a trailing slash now. This fixes "make install" on msys (i.e. on windows), where a path starting with // is interpreted as a special network path.
--- a/Makefile
+++ b/Makefile
@@ -235,27 +235,27 @@
@sed -e 's;@prefix@;$(PREFIX);' -e 's;@VERSION@;$(VERSION);' -e 's;@LIBS@;$(STATIC_LDFLAGS);' -e 's;@LIBS_PRIVATE@;;' < $(PROJECT_NAME).pc.in > $@
install-headers:
- mkdir -p $(DESTDIR)/$(PREFIX)/include/wels
- install -m 644 codec/api/svc/codec*.h $(DESTDIR)/$(PREFIX)/include/wels
+ mkdir -p $(DESTDIR)$(PREFIX)/include/wels
+ install -m 644 codec/api/svc/codec*.h $(DESTDIR)$(PREFIX)/include/wels
install-static-lib: $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX) install-headers
- mkdir -p $(DESTDIR)/$(PREFIX)/lib
- install -m 644 $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX) $(DESTDIR)/$(PREFIX)/lib
+ mkdir -p $(DESTDIR)$(PREFIX)/lib
+ install -m 644 $(LIBPREFIX)$(PROJECT_NAME).$(LIBSUFFIX) $(DESTDIR)$(PREFIX)/lib
install-static: install-static-lib $(PROJECT_NAME)-static.pc
- mkdir -p $(DESTDIR)/$(PREFIX)/lib/pkgconfig
- install -m 644 $(PROJECT_NAME)-static.pc $(DESTDIR)/$(PREFIX)/lib/pkgconfig/$(PROJECT_NAME).pc
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/pkgconfig
+ install -m 644 $(PROJECT_NAME)-static.pc $(DESTDIR)$(PREFIX)/lib/pkgconfig/$(PROJECT_NAME).pc
install-shared: $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) install-headers $(PROJECT_NAME).pc
- mkdir -p $(DESTDIR)/$(SHAREDLIB_DIR)
- install -m 755 $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER) $(DESTDIR)/$(SHAREDLIB_DIR)
+ mkdir -p $(DESTDIR)$(SHAREDLIB_DIR)
+ install -m 755 $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIXVER) $(DESTDIR)$(SHAREDLIB_DIR)
if [ "$(SHAREDLIBSUFFIXVER)" != "$(SHAREDLIBSUFFIX)" ]; then \
- cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(DESTDIR)/$(SHAREDLIB_DIR); \
+ cp -a $(LIBPREFIX)$(PROJECT_NAME).$(SHAREDLIBSUFFIX) $(DESTDIR)$(SHAREDLIB_DIR); \
fi
- mkdir -p $(DESTDIR)/$(PREFIX)/lib/pkgconfig
- install -m 644 $(PROJECT_NAME).pc $(DESTDIR)/$(PREFIX)/lib/pkgconfig
+ mkdir -p $(DESTDIR)$(PREFIX)/lib/pkgconfig
+ install -m 644 $(PROJECT_NAME).pc $(DESTDIR)$(PREFIX)/lib/pkgconfig
ifneq ($(EXTRA_LIBRARY),)
- install -m 644 $(EXTRA_LIBRARY) $(DESTDIR)/$(PREFIX)/lib
+ install -m 644 $(EXTRA_LIBRARY) $(DESTDIR)$(PREFIX)/lib
endif
install: install-static-lib install-shared