source: rtems/testsuites/automake/subdirs.am @ aa567bc1

5
Last change on this file since aa567bc1 was ee3d7dcb, checked in by Chris Johns <chrisj@…>, on 04/09/18 at 03:46:17

testsuites: Remove the test check from the subdir support.

Leave the parallel support so each test group builds in parallel.

Update #3382

  • Property mode set to 100644
File size: 791 bytes
Line 
1## Borrowed from automake/subdir.am which borrowed automake-1.4 and adapted to RTEMS
2
3## NOTE: This is a temporary work-around until automake is removed from RTEMS.
4##   It is a hack within many hacks and is designed to keep the source as clean
5##   as possible.
6
7define TESTDIR
8.PHONY: $1
9$1:
10        @+set fnord $(MAKEFLAGS); \
11        if test "$(1)" != "."; then \
12          target=`echo $(MAKECMDGOALS) | sed s/-recursive//`; \
13          if test "$$$$target" = "all-local-am"; then \
14            target="all-am"; \
15          fi; \
16          if test "$$$$target" = "all-local"; then \
17            target="all"; \
18          fi; \
19          echo "Making $$$$target in $(1)"; \
20          cd $(1); \
21          $(MAKE) $(AM_MAKEFLAGS) TEST_FLAGS="$$$$test_FLAGS" $$$$target; \
22        fi;
23endef
24
25$(foreach T,$(_SUBDIRS),$(eval $(call TESTDIR,$(strip $(T)))))
26
27all-local:  $(_SUBDIRS)
Note: See TracBrowser for help on using the repository browser.