chiark / gitweb /
[PATCH] klibc: version 1.0.7
[elogind.git] / klibc / klibc / Makefile
index 181a226151d809aaa096c28de040994c1d3b121f..dff813fc59a938b2be6caf9951714e6f3c1ab459 100644 (file)
@@ -139,8 +139,8 @@ syscalls.nrs: ../include/sys/syscall.h
        $(CC) $(CFLAGS) -Wp,-dM -x c -E -o $@ $<
 
 syscalls.dir: SYSCALLS.i syscalls.pl arch/$(ARCH)/sysstub.ph syscommon.h syscalls.nrs
-       rm -rf syscalls
-       mkdir syscalls
+       rm -f syscalls/*.[Ssco] syscalls/*.obj
+       mkdir -p syscalls
        $(PERL) syscalls.pl SYSCALLS.i arch/$(ARCH)/sysstub.ph $(ARCH) \
                $(BITSIZE) syscalls.nrs \
                syscalls ../include/klibc/havesyscall.h
@@ -150,8 +150,8 @@ syscalls.dir: SYSCALLS.i syscalls.pl arch/$(ARCH)/sysstub.ph syscommon.h syscall
        : Generated by side effect
 
 socketcalls.dir: SOCKETCALLS.def socketcalls.pl socketcommon.h
-       rm -rf socketcalls
-       mkdir socketcalls
+       rm -f socketcalls/*.[Ssco] socketcalls/*.obj
+       mkdir -p socketcalls
        $(PERL) socketcalls.pl SOCKETCALLS.def $(ARCH) socketcalls
        touch $@
 
@@ -167,8 +167,8 @@ clean: archclean
        find . -type f -a \( -name \*.[isoa] -o -name \*.l[iso] \) -print0 | xargs -0rt rm -f
        rm -f *.a *.so *.hash *.syms *.stripped
        rm -f $(TESTS) tests/*.stripped
-       rm -rf syscalls syscalls.dir
-       rm -rf socketcalls socketcalls.dir
+       rm -f syscalls/*.[Ssco] syscalls/*.obj syscalls.dir
+       rm -f socketcalls/*.[Ssco] socketcalls/*.obj socketcalls.dir
        rm -f sha1hash errlist.c
 
 spotless: clean