commit 69aa42d63b79974d2490eeb6ac9565ff042527ff from: Stefan Sperling date: Mon Sep 16 08:32:50 2024 UTC honour DESTDIR in 'make install' target commit - d439592012f7858a81ef1e384713128905908e10 commit + 69aa42d63b79974d2490eeb6ac9565ff042527ff blob - 9b7a091b5a5df89cdc16fa38c586c0d2045e65db blob + 0ab38bf23486728192a964f13a9d9d33e842b254 --- Makefile +++ Makefile @@ -59,8 +59,8 @@ mantab.c: mantab.sh nsh.8 sh ${.CURDIR}/mantab.sh ${.CURDIR}/nsh.8 > mantab.c afterinstall: - test -e ${PREFIX}/bin/save.sh || install -m 755 -o root -g bin \ - ${.CURDIR}/save-rw.sh ${PREFIX}/bin/save.sh + test -e ${DESTDIR}${PREFIX}/bin/save.sh || install -m 755 -o root -g bin \ + ${.CURDIR}/save-rw.sh ${DESTDIR}${PREFIX}/bin/save.sh release: clean sed -i -e "s/_RELEASE=No/_RELEASE=Yes/" ${.CURDIR}/nsh-version.mk