OSDN Git Service

buildsys: on realclean, rm include/{config,generated}
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 11 Nov 2013 10:15:17 +0000 (11:15 +0100)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Mon, 11 Nov 2013 10:15:17 +0000 (11:15 +0100)
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Makefile.in
Makerules

index 1c93b44..500b8f3 100644 (file)
@@ -168,6 +168,8 @@ $(target-headers-sysdep) $(pregen-headers-y): | $(top_builddir)include/bits $(to
 HEADERCLEAN_common:
        $(do_rm) $(ALL_HEADERS_COMMON)
 headers_clean-y += HEADERCLEAN_common
+HEADERCLEAN_config:
+       $(do_rm) -r $(addprefix $(top_builddir)include/,config generated)
 
 # The headers. Arch specific headers are specified via ARCH_HEADERS in
 # libc/sysdeps/linux/$(TARGET_ARCH)/Makefile.arch which appends those via
index 5030205..5518b15 100644 (file)
--- a/Makerules
+++ b/Makerules
@@ -488,7 +488,7 @@ files.dep := $(libc-a-y) $(libc-so-y) $(libc-nonshared-y) \
 FORCE:
 
 clean: objclean-y headers_clean-y
-realclean: clean menuconfig-clean-y
+realclean: clean HEADERCLEAN_config menuconfig-clean-y
        $(Q)$(RM) $(.depends.dep)
 
 objclean-y: $(objclean-y)