summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile.in3
-rw-r--r--Makerules2
-rw-r--r--extra/config/Makefile4
3 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index f365bb8e2..9633bb02c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -427,6 +427,9 @@ defconfig: $(top_builddir)extra/config/conf
$(Q)$(top_builddir)extra/config/conf -d extra/Configs/Config.in \
-D extra/Configs/defconfigs/$(ARCH)
+menuconfig-clean-y:
+ $(Q)$(MAKE) -C extra/config menuconfig_clean
+
include_clean:
$(Q)$(RM) $(top_builddir)include/fpu_control.h $(top_builddir)include/dl-osinfo.h $(top_builddir)include/hp-timing.h
@set -e; \
diff --git a/Makerules b/Makerules
index 87d7f4a0a..fdc956f45 100644
--- a/Makerules
+++ b/Makerules
@@ -435,7 +435,7 @@ files.dep := $(libc-a-y) $(libc-so-y) $(libc-nonshared-y) \
FORCE:
clean: objclean-y headers_clean-y
-realclean: clean
+realclean: clean menuconfig-clean-y
$(Q)$(RM) $(.depends.dep)
objclean-y: $(objclean-y)
diff --git a/extra/config/Makefile b/extra/config/Makefile
index 7d8a1e4ad..04175e541 100644
--- a/extra/config/Makefile
+++ b/extra/config/Makefile
@@ -73,8 +73,8 @@ $(obj)/%:: $(top_srcdir)$(src)/%_shipped
@$(disp_gen)
$(Q)cat $< > $@
endif
-clean:
- $(do_rm) $(clean-files) conf
+menuconfig_clean:
+ $(do_rm) $(clean-files) conf $(wildcard *.o)
distclean: clean
$(do_rm) $(lxdialog) $(conf-objs) $(mconf-objs) \
$(kxgettext-objs) \