Fix DESTDIR support for cygwin/msys2 install
authorMartin Kroeker <martin@ruby.chemie.uni-freiburg.de>
Mon, 16 Jan 2017 14:15:46 +0000 (15:15 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Jan 2017 14:15:46 +0000 (15:15 +0100)
fixes #1066

Makefile.install

index 1b9388a..aadd5f7 100644 (file)
@@ -91,7 +91,7 @@ ifeq ($(OSNAME), WINNT)
        @-cp $(LIBDLLNAME).a "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
 endif
 ifeq ($(OSNAME), CYGWIN_NT)
-       @-cp $(LIBDLLNAME) $(OPENBLAS_BINARY_DIR)
+       @-cp $(LIBDLLNAME) "$(DESTDIR)$(OPENBLAS_BINARY_DIR)"
 endif
 endif
 #Generating OpenBLASConfig.cmake