Commit 97831a8d7d6f089f06375fc1a0aacd84b3d3166c

Thomas de Grivel 2023-01-23T09:06:36

make DESTDIR=... install

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/shpkg.subr b/lib/shpkg.subr
index 70a9ad7..83d5970 100644
--- a/lib/shpkg.subr
+++ b/lib/shpkg.subr
@@ -211,7 +211,7 @@ shpkg_fake () {
         verbose mkdir -p "${SHPKG_REPO_FAKE_DIR}"
         if [ -f "${SHPKG_REPO_SRC_DIR}/Makefile" ]; then
             ( verbose cd "${SHPKG_REPO_SRC_DIR}" &&
-                  verbose make PREFIX="${SHPKG_REPO_FAKE_DIR}" install; )
+                  verbose make DESTDIR="${SHPKG_REPO_FAKE_DIR}" install; )
         elif [ -f "${SHPKG_REPO_SRC_DIR}/CMakeLists.txt" ]; then
             cmake --install "${SHPKG_OBJ_DIR}/${SHPKG_REPO_DIR}" --prefix "${SHPKG_REPO_FAKE_DIR}"
         fi