#!/usr/bin/env build build_make_distclean() { load_rules "${1}" import build-make-uninstall if [ -f "${BUILDER_ATFDIR}/${CATEGORY}/${NAME}-${VERSION}-${RELEASE}.${ARCHIVE_FORMAT}" ]; then rm "${BUILDER_ATFDIR}/${CATEGORY}/${NAME}-${VERSION}-${RELEASE}.${ARCHIVE_FORMAT}" & fi if [ -d "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" ]; then rm -rf "${BUILDER_TMPDIR}/${CATEGORY}/${NAME}" & fi build_make_uninstall "${1}" & wait } build_make_clean() {( load_rules "${1}" if test "${NOCLEAN:-0}" -eq '0' ; then build_make_distclean "${1}" fi )} if test "${BUILDER_CALL_STACK}" = '__main__'; then simple_usage 'clean' '[all|[/]]' "$@" echo "cleaning: ${1}" build_make_clean "${@}" fi # vim: filetype=sh