[rtems commit] build: Fix make clean.

Chris Johns chrisj at rtems.org
Wed Apr 11 03:28:09 UTC 2018


Module:    rtems
Branch:    master
Commit:    b8c59353552c2504c0e71e1f6f81dfa4b2a96e37
Changeset: http://git.rtems.org/rtems/commit/?id=b8c59353552c2504c0e71e1f6f81dfa4b2a96e37

Author:    Chris Johns <chrisj at rtems.org>
Date:      Wed Apr 11 13:26:58 2018 +1000

build: Fix make clean.

Update #3254.

---

 c/src/automake/subdirs.am      | 7 +++----
 cpukit/automake/subdirs.am     | 3 ++-
 testsuites/automake/subdirs.am | 3 ++-
 3 files changed, 7 insertions(+), 6 deletions(-)

diff --git a/c/src/automake/subdirs.am b/c/src/automake/subdirs.am
index 6ae7ff0..47d88cf 100644
--- a/c/src/automake/subdirs.am
+++ b/c/src/automake/subdirs.am
@@ -17,11 +17,9 @@ SUBDIRS_no_dot_no_wrapup_no_testsuites = $(filter-out testsuites,$(SUBDIRS_no_do
 SUBDIRS_wrapup                         = $(filter     wrapup,$(SUBDIRS_no_dot))
 SUBDIRS_testsuites                     = $(filter     testsuites,$(SUBDIRS_no_dot))
 
-preinstall: $(preintstall_targets)
-
 define CPUKITDIR
 .PHONY: $1
-$1: $(preintstall_targets)
+$1:
 	@+set fnord $(MAKEFLAGS); amf=$$$$2; \
 	subdir=$(2); \
 	target=`echo $(MAKECMDGOALS) | sed s/-recursive//`; \
@@ -62,4 +60,5 @@ $(if "$(SUBDIRS_testsuites)" "testsuites",testsuites: dot $(SUBDIRS_no_dot_no_te
 #
 # The general build all rule for automake.
 #
-all-local: $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
+all-local:   $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
+clean-local: $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
diff --git a/cpukit/automake/subdirs.am b/cpukit/automake/subdirs.am
index 8c7be70..b36ad80 100644
--- a/cpukit/automake/subdirs.am
+++ b/cpukit/automake/subdirs.am
@@ -49,4 +49,5 @@ $(foreach D,$(SUBDIRS_no_dot),$(eval $(call CPUKITDIR,$(D),$(D))))
 #
 $(if "$(SUBDIRS_wrapup)" "wrapup",wrapup: dot $(foreach D,$(SUBDIRS_no_dot_no_wrapup),$(D)),)
 
-all-local: $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
+all-local:   $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
+clean-local: $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
diff --git a/testsuites/automake/subdirs.am b/testsuites/automake/subdirs.am
index e0ddab4..a566774 100644
--- a/testsuites/automake/subdirs.am
+++ b/testsuites/automake/subdirs.am
@@ -24,4 +24,5 @@ endef
 
 $(foreach T,$(_SUBDIRS),$(eval $(call TESTDIR,$(strip $(T)))))
 
-all-local:  $(_SUBDIRS)
+all-local:   $(_SUBDIRS)
+clean-local: $(_SUBDIRS)



More information about the vc mailing list