From dfbcec0bde2500b34356050537ca9d85c694412b Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 6 Sep 2014 08:28:24 -0600 Subject: Fix clean and distclean targets. Back out a few too many changes made by sed --- apps/Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/Makefile') diff --git a/apps/Makefile b/apps/Makefile index 3a8e2f07a..dd5cb2c77 100644 --- a/apps/Makefile +++ b/apps/Makefile @@ -125,8 +125,8 @@ $(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),all))) $(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),install))) $(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),context))) $(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),depend))) -$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),clean))) -$(foreach SDIR, $(INSTALLED_APPS), $(eval $(call SDIR_template,$(SDIR),distclean))) +$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),clean))) +$(foreach SDIR, $(SUBDIRS), $(eval $(call SDIR_template,$(SDIR),distclean))) $(BIN): $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_all) @@ -151,11 +151,11 @@ context: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_context) depend: .depend -clean: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_clean) +clean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_clean) $(call DELFILE, $(BIN)) $(call CLEAN) -distclean: $(foreach SDIR, $(INSTALLED_APPS), $(SDIR)_distclean) +distclean: $(foreach SDIR, $(SUBDIRS), $(SDIR)_distclean) ifeq ($(CONFIG_WINDOWS_NATIVE),y) $(Q) ( if exist external ( \ echo ********************************************************" \ @@ -171,6 +171,6 @@ else ) endif $(call DELFILE, .depend) - $(call DELDIR, bin) + $(call DELDIR, $(INSTALL_DIR)) -- cgit v1.2.3