From 464c79207c89f247f97b344495924eabb0c9738e Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 13 Oct 2011 06:54:57 +0000 Subject: punt unused clean/distclean targets The top level Makefile does not do any recursion into subdirs when cleaning, so these clean/distclean targets in random arch/board dirs never get used. Punt them all. MAKEALL didn't report any errors related to this that I could see. Signed-off-by: Mike Frysinger --- board/spear/common/Makefile | 6 ------ board/spear/spear300/Makefile | 6 ------ board/spear/spear310/Makefile | 6 ------ board/spear/spear320/Makefile | 6 ------ board/spear/spear600/Makefile | 6 ------ 5 files changed, 30 deletions(-) (limited to 'board/spear') diff --git a/board/spear/common/Makefile b/board/spear/common/Makefile index e0df6c1fe6..11f81e4803 100644 --- a/board/spear/common/Makefile +++ b/board/spear/common/Makefile @@ -39,12 +39,6 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) $(call cmd_link_o_target, $(OBJS) $(SOBJS)) -clean: - rm -f $(SOBJS) $(OBJS) - -distclean: clean - rm -f $(LIB) core *.bak $(obj).depend - ######################################################################### # This is for $(obj).depend target include $(SRCTREE)/rules.mk diff --git a/board/spear/spear300/Makefile b/board/spear/spear300/Makefile index b9b0fed8af..aa1074957e 100644 --- a/board/spear/spear300/Makefile +++ b/board/spear/spear300/Makefile @@ -35,12 +35,6 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) $(call cmd_link_o_target, $(OBJS) $(SOBJS)) -clean: - rm -f $(SOBJS) $(OBJS) - -distclean: clean - rm -f $(LIB) core *.bak $(obj).depend - ######################################################################### # defines $(obj).depend target diff --git a/board/spear/spear310/Makefile b/board/spear/spear310/Makefile index 6dce0936a8..c5b63274cd 100644 --- a/board/spear/spear310/Makefile +++ b/board/spear/spear310/Makefile @@ -35,12 +35,6 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) $(call cmd_link_o_target, $(OBJS) $(SOBJS)) -clean: - rm -f $(SOBJS) $(OBJS) - -distclean: clean - rm -f $(LIB) core *.bak $(obj).depend - ######################################################################### # defines $(obj).depend target diff --git a/board/spear/spear320/Makefile b/board/spear/spear320/Makefile index f6bd7dd4c2..68dd7348a7 100644 --- a/board/spear/spear320/Makefile +++ b/board/spear/spear320/Makefile @@ -35,12 +35,6 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) $(call cmd_link_o_target, $(OBJS) $(SOBJS)) -clean: - rm -f $(SOBJS) $(OBJS) - -distclean: clean - rm -f $(LIB) core *.bak $(obj).depend - ######################################################################### # defines $(obj).depend target diff --git a/board/spear/spear600/Makefile b/board/spear/spear600/Makefile index 6b643bfc25..e2bd5ab7f5 100644 --- a/board/spear/spear600/Makefile +++ b/board/spear/spear600/Makefile @@ -35,12 +35,6 @@ SOBJS := $(addprefix $(obj),$(SOBJS)) $(LIB): $(obj).depend $(OBJS) $(SOBJS) $(call cmd_link_o_target, $(OBJS) $(SOBJS)) -clean: - rm -f $(SOBJS) $(OBJS) - -distclean: clean - rm -f $(LIB) core *.bak $(obj).depend - ######################################################################### # defines $(obj).depend target -- cgit v1.2.3