Made sure that the install target will work with a relative install path.

This commit is contained in:
kolev1 2011-05-17 16:42:45 +00:00
parent c33854e3d1
commit 5516ba3b0c

View File

@ -159,18 +159,22 @@ install: all
@ \
echo "Installing hypre ..."; \
${HYPRE_SRC_TOP_DIR}/config/mkinstalldirs ${HYPRE_LIB_INSTALL} ${HYPRE_INC_INSTALL}; \
HYPRE_PWD=`pwd`; \
cd ${HYPRE_BUILD_DIR}/lib; HYPRE_FROMDIR=`pwd`; \
cd $$HYPRE_PWD; \
cd ${HYPRE_LIB_INSTALL}; HYPRE_TODIR=`pwd`; \
if [ "$$HYPRE_FROMDIR" != "$$HYPRE_TODIR" ]; \
then \
cp -fpPR $$HYPRE_FROMDIR/* $$HYPRE_TODIR; \
fi; \
cd ${HYPRE_BUILD_DIR}/include; HYPRE_FROMDIR=`pwd`; \
cd $$HYPRE_PWD; \
cd ${HYPRE_INC_INSTALL}; HYPRE_TODIR=`pwd`; \
if [ "$$HYPRE_FROMDIR" != "$$HYPRE_TODIR" ]; \
then \
cp -fpPR $$HYPRE_FROMDIR/* $$HYPRE_TODIR; \
fi; \
cd $$HYPRE_PWD; \
chmod -R a+rX,u+w,go-w ${HYPRE_LIB_INSTALL}; \
chmod -R a+rX,u+w,go-w ${HYPRE_INC_INSTALL}; \
echo