Makefile: clean should just remove ${OUTPUT_DIRS}

This commit is contained in:
Laurence Withers 2006-07-24 15:50:13 +01:00
parent 08b01444bb
commit 920b871f49
1 changed files with 1 additions and 6 deletions

View File

@ -257,12 +257,7 @@ do
case ${func} in
clean)
echo "Cleaning..."
for dir in ${OUTPUT_DIRS}
do
[ -e "${dir}" ] && do_cmd \
find "${dir}" \( -type f -o -type l \) -exec rm {} \;
[ $? -ne 0 ] && exit $?
done
rm -rf ${OUTPUT_DIRS}
print_success "Done"
;;