Makefile: clean should just remove ${OUTPUT_DIRS}
This commit is contained in:
parent
08b01444bb
commit
920b871f49
|
@ -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"
|
||||
;;
|
||||
|
||||
|
|
Loading…
Reference in New Issue