summaryrefslogtreecommitdiffstats
path: root/c/src/automake
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2018-04-11 13:26:58 +1000
committerChris Johns <chrisj@rtems.org>2018-04-11 13:26:58 +1000
commitb8c59353552c2504c0e71e1f6f81dfa4b2a96e37 (patch)
tree174f44a1fe3a268115a0b5c49da486994615b3ed /c/src/automake
parentd13a62409e497c10725af6f975bdfb6ca17a3ebd (diff)
downloadrtems-b8c59353552c2504c0e71e1f6f81dfa4b2a96e37.tar.bz2
build: Fix make clean.
Update #3254.
Diffstat (limited to 'c/src/automake')
-rw-r--r--c/src/automake/subdirs.am7
1 files changed, 3 insertions, 4 deletions
diff --git a/c/src/automake/subdirs.am b/c/src/automake/subdirs.am
index 6ae7ff05a1..47d88cffcd 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)