Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
@@ -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; \
@@ -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)
@@ -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) \