From c437255d96087a322f6bd2d6eac00d371b71d838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20S=C3=B6ntgen?= Date: Thu, 29 Aug 2013 15:43:26 +0200 Subject: [PATCH] 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. --- libports/ports/libc.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libports/ports/libc.mk b/libports/ports/libc.mk index e38a14155..aa8ccdbf9 100644 --- a/libports/ports/libc.mk +++ b/libports/ports/libc.mk @@ -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)