For anything but (toplevel) clean, CLEAN_%, we need .config
Otherwise realclean would leave stuff behind that was not intended to
survive.
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
$(Q)$(RM) $(top_builddir)extra/scripts/unifdef
$(Q)$(RM) -r $(LOCAL_INSTALL_PATH)
-distclean: clean
+distclean: realclean
-find . \( -name core -o -name \*.orig -o -name \*~ -o -name .\*.dep \) -exec $(RM) {} \;
$(RM) $(top_builddir).config $(top_builddir).config.old $(top_builddir).config.cmd
$(Q)$(RM) $(top_builddir)extra/locale/*.tgz
KCONFIG_CONFIG ?= $(top_builddir).config
# Pull in the user's uClibc configuration
-ifeq ($(filter $(noconfig_targets) $(clean_targets) CLEAN_%,$(MAKECMDGOALS)),)
+ifeq ($(filter $(noconfig_targets) clean CLEAN_%,$(MAKECMDGOALS)),)
# Prevent make from searching
__ABS_KCONFIG_CONFIG ?= $(abspath $(KCONFIG_CONFIG))
-include $(__ABS_KCONFIG_CONFIG)