Skip to content

Commit b025523

Browse files
authored
Use installbsd on AIX
(and fix misplaced parenthesis from previous commit). See #1803
1 parent 7b5aea5 commit b025523

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Makefile.install

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ ifndef NO_CBLAS
4848
@sed 's/common/openblas_config/g' cblas.h > "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/cblas.h"
4949
endif
5050

51-
ifneq (($OSNAME), AIX)
51+
ifneq ($(OSNAME), AIX)
5252
ifndef NO_LAPACKE
5353
@echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
5454
@-install -pm644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
@@ -99,23 +99,23 @@ else
9999
#install on AIX has different options syntax
100100
ifndef NO_LAPACKE
101101
@echo Copying LAPACKE header files to $(DESTDIR)$(OPENBLAS_INCLUDE_DIR)
102-
@-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
103-
@-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h"
104-
@-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h"
105-
@-install -M 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h"
102+
@-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke.h"
103+
@-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_config.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_config.h"
104+
@-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_mangling_with_flags.h.in "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_mangling.h"
105+
@-installbsd -c -m 644 $(NETLIB_LAPACK_DIR)/LAPACKE/include/lapacke_utils.h "$(DESTDIR)$(OPENBLAS_INCLUDE_DIR)/lapacke_utils.h"
106106
endif
107107

108108
#for install static library
109109
ifndef NO_STATIC
110110
@echo Copying the static library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
111-
@install -M 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
111+
@installbsd -c -m 644 $(LIBNAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
112112
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
113113
ln -fs $(LIBNAME) $(LIBPREFIX).$(LIBSUFFIX)
114114
endif
115115
#for install shared library
116116
ifndef NO_SHARED
117117
@echo Copying the shared library to $(DESTDIR)$(OPENBLAS_LIBRARY_DIR)
118-
@install -M 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
118+
@installbsd -c -m 755 $(LIBSONAME) "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)"
119119
@cd "$(DESTDIR)$(OPENBLAS_LIBRARY_DIR)" ; \
120120
ln -fs $(LIBSONAME) $(LIBPREFIX).so ; \
121121
ln -fs $(LIBSONAME) $(LIBPREFIX).so.$(MAJOR_VERSION)

0 commit comments

Comments
 (0)