summaryrefslogtreecommitdiffhomepage
path: root/subr/pkg_clean.subr
diff options
context:
space:
mode:
authorLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-05-15 09:48:40 +0100
committerLucio Andrés Illanes Albornoz <lucio@lucioillanes.de>2020-05-15 09:48:40 +0100
commit8a4e16ff3484e7395112e1a8888ee7c8eb176987 (patch)
tree3ba4e90cec38dd65bfe4d4a0b37893d887957aa8 /subr/pkg_clean.subr
parentdd9b89b3fafe8cb08c184fc74b5c2133cc658b6b (diff)
downloadmidipix_build-8a4e16ff3484e7395112e1a8888ee7c8eb176987.tar.bz2
midipix_build-8a4e16ff3484e7395112e1a8888ee7c8eb176987.tar.xz
Optionally install ${PKG_DESTDIR_HOST} into ${PREFIX}.
vars/libxslt.vars:pkg_libxslt_install_make_post(): install ${PREFIX}/bin/xslt-config into ${PKG_DESTDIR_HOST}/bin.
Diffstat (limited to 'subr/pkg_clean.subr')
-rw-r--r--subr/pkg_clean.subr3
1 files changed, 3 insertions, 0 deletions
diff --git a/subr/pkg_clean.subr b/subr/pkg_clean.subr
index 39b0ead5..a4a70d63 100644
--- a/subr/pkg_clean.subr
+++ b/subr/pkg_clean.subr
@@ -12,6 +12,9 @@ pkg_clean() {
if rtl_lmatch "${ARG_CLEAN_BUILDS}" "dest" ","; then
if ! rtl_fileop rm "${PKG_DESTDIR}"; then
return 1;
+ elif [ -e "${PKG_DESTDIR_HOST}" ]\
+ && ! rtl_fileop rm "${PKG_DESTDIR_HOST}"; then
+ return 1;
fi;
fi;
if rtl_lmatch "${ARG_CLEAN_BUILDS}" "src" ","; then