[uClibc][PATCH] 'clean' target patch for top-level Makefile...
Steven J. Hill
sjhill at realitydiluted.com
Mon Mar 25 12:51:28 UTC 2002
Greetings.
This patch makes the 'clean' target more logical. The removal of
the symbolic links and object files is done after the cleaning
of the architecture specific directory. This remove unneeded MIPS
specific code from the Makefile. Please apply.
-Steve
diff -urN uclibc/Makefile uclibc-patched/Makefile
--- uclibc/Makefile Mon Mar 25 06:35:18 2002
+++ uclibc-patched/Makefile Mon Mar 25 06:44:37 2002
@@ -330,16 +330,17 @@
distclean clean:
@rm -rf tmp lib include/bits libc/tmp _install
- - find include -type l -exec rm -f {} \;
- - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
$(MAKE) -C test clean
$(MAKE) -C ldso clean
$(MAKE) -C libc/misc clean
$(MAKE) -C libc/unistd clean
$(MAKE) -C libc/sysdeps/linux/common clean
- $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean
$(MAKE) -C extra/gcc-uClibc clean
- find . -name mipsel -exec rm -rf {} \;
+ @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then \
+ $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean; \
+ fi;
+ - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec rm -f {} \;
+ - find -type l -exec rm -f {} \;
dist release: distclean
cd ..; \
More information about the uClibc
mailing list