OSDN Git Service

Target distclean removes now locales.txt/codesets.txt too. reorder clean target.
authorPeter S. Mazinger <ps.m@gmx.net>
Tue, 27 Sep 2005 08:43:33 +0000 (08:43 -0000)
committerPeter S. Mazinger <ps.m@gmx.net>
Tue, 27 Sep 2005 08:43:33 +0000 (08:43 -0000)
Makefile

index d1d7d9e..817ae80 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -352,8 +352,8 @@ defconfig: extra/config/conf
        @./extra/config/conf -d extra/Configs/Config.in
 
 clean:
-       - find . \( -name \*.o -o -name \*.a -o -name \*.so -o -name core -o -name .\#\* \) -exec $(RM) {} \;
        @$(RM) -r lib include/bits
+       $(RM) */*.so */*.a
        $(RM) libc/misc/internals/interp.c
        $(RM) include/fpu_control.h
        $(MAKE) -C extra/locale clean
@@ -374,9 +374,11 @@ clean:
        @if [ -d libc/sysdeps/linux/$(TARGET_ARCH) ]; then              \
            $(MAKE) -C libc/sysdeps/linux/$(TARGET_ARCH) clean;         \
        fi
+       - find . \( -name \*.o -o -name core -o -name .\#\* \) -exec $(RM) {} \;
 
 distclean: clean
        $(RM) .config .config.old .config.cmd
+       $(RM) extra/locale/*.txt
        $(MAKE) -C extra clean
 
 release: distclean