summaryrefslogtreecommitdiffstats
path: root/cpukit/automake
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-09-10 17:38:14 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-10-10 14:06:28 +0200
commit2548d14b82b4baab29b7b680ec799042983dff8f (patch)
treea604fdea7675d3af51e069c7df1a839f89d7541d /cpukit/automake
parenttelnetd: Remove keep stdio feature (diff)
downloadrtems-2548d14b82b4baab29b7b680ec799042983dff8f.tar.bz2
build: Include header.am in cpukit/Makefile.am
Include all cpukit/*/header.am files in cpukit/Makefile.am. This gets rid of all subtree Makefile.am and the sudirs hack.
Diffstat (limited to 'cpukit/automake')
-rw-r--r--cpukit/automake/subdirs.am53
1 files changed, 0 insertions, 53 deletions
diff --git a/cpukit/automake/subdirs.am b/cpukit/automake/subdirs.am
deleted file mode 100644
index b36ad80735..0000000000
--- a/cpukit/automake/subdirs.am
+++ /dev/null
@@ -1,53 +0,0 @@
-## Copyright 2017 Chris Johns <chrisj@rtems.org>
-
-##
-## The following builds in parallel. The subdirectories are
-## expanded into separate rules and all the targets are listed
-## and make runs as many as it can.
-##
-## A macro is defined and evaluated once for each directory. This
-## creates the instance of the rule. Use $(info ...) to print them.
-##
-
-SUBDIRS_dot = $(filter .,$(_SUBDIRS))
-SUBDIRS_no_dot = $(filter-out .,$(_SUBDIRS))
-SUBDIRS_no_dot_no_wrapup = $(filter-out wrapup,$(SUBDIRS_no_dot))
-SUBDIRS_wrapup = $(filter wrapup,$(SUBDIRS_no_dot))
-
-preinstall: $(preintstall_targets)
-
-define CPUKITDIR
-.PHONY: $1
-$1: $(preintstall_targets)
- @+set fnord $(MAKEFLAGS); amf=$$$$2; \
- subdir=$(2); \
- target=`echo $(MAKECMDGOALS) | sed s/-recursive//`; \
- if test "$$$$target" = "all-local-am"; then \
- target="all-am"; \
- fi; \
- if test "$$$$target" = "all-local"; then \
- target="all"; \
- fi; \
- echo "Making $$$$target in $$$$subdir"; \
- if test "$$$$subdir" != "."; then \
- cd $$$$subdir; \
- $(MAKE) $(AM_MAKEFLAGS) $$$$target; \
- fi;
-endef
-
-#
-# This GNU make syntax is being used to stop automake thinking the code is for
-# it.
-#
-$(if "$(SUBDIRS_dot)" ".",$(eval $(call CPUKITDIR,dot,.)))
-
-$(foreach D,$(SUBDIRS_no_dot),$(eval $(call CPUKITDIR,$(D),$(D))))
-
-#
-# If there is a wrapup make it depend on all other directories so it is not
-# entered until they have finished.
-#
-$(if "$(SUBDIRS_wrapup)" "wrapup",wrapup: dot $(foreach D,$(SUBDIRS_no_dot_no_wrapup),$(D)),)
-
-all-local: $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)
-clean-local: $(if "$(SUBDIRS_dot)" ".",dot) $(SUBDIRS_no_dot)