libports: remove right files when cleaning libc

Only the directories and files which were created in the first place
by the libc port should be removed. Thereby ignore the exit code of
the find command to prevent GNUmake from stopping its execution.

Fixes #841.
This commit is contained in:
Josef Söntgen 2013-08-29 15:43:26 +02:00 committed by Norman Feske
parent b1fe2b5ab9
commit c437255d96
1 changed files with 2 additions and 2 deletions

View File

@ -588,10 +588,10 @@ create_include_symlinks-libc: checkout-libc
prepare-libc: apply_patches-libc libc_net_generate libc_rpc_generate create_include_symlinks-libc
clean_include_symlinks-libc:
$(VERBOSE)find include -type l -delete
$(VERBOSE)-find include/libc{,-amd64,-arm,-i386} -type l -delete 2>/dev/null
clean_include_subdirs-libc: clean_include_symlinks-libc
$(VERBOSE)find include -type d -empty -delete
$(VERBOSE)-find include/libc{,-amd64,-arm,-i386} -type d -empty -delete 2>/dev/null
clean-libc: clean_include_subdirs-libc
$(VERBOSE)rm -rf $(CONTRIB_DIR)/$(LIBC)