summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-11 11:15:17 +0100
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-11-11 11:15:17 +0100
commit6967a690f9e5d70089e9c37d52d582d48c1f0429 (patch)
treea9b7ae7789937cbd391210916e210e025ea41f70
parent0e03ac5a6c4265fb4ddcdcbf5fdc9f20bcbef203 (diff)
buildsys: on realclean, rm include/{config,generated}
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--Makefile.in2
-rw-r--r--Makerules2
2 files changed, 3 insertions, 1 deletions
diff --git a/Makefile.in b/Makefile.in
index 1c93b447d..500b8f37d 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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
diff --git a/Makerules b/Makerules
index 5030205c4..5518b1572 100644
--- 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)