1# SPDX-License-Identifier: GPL-2.0-only
2# Carsten Haitzler <carsten.haitzler@arm.com>, 2021
3include ../../../../../tools/scripts/Makefile.include
4include ../../../../../tools/scripts/Makefile.arch
5include ../../../../../tools/scripts/utilities.mak
6
7SUBDIRS =
8
9all: $(SUBDIRS)
10$(SUBDIRS):
11	@$(MAKE) -C $@ >/dev/null
12
13INSTALLDIRS = $(SUBDIRS:%=install-%)
14
15install-tests: $(INSTALLDIRS)
16$(INSTALLDIRS):
17	@$(MAKE) -C $(@:install-%=%) install-tests >/dev/null
18
19CLEANDIRS = $(SUBDIRS:%=clean-%)
20
21clean: $(CLEANDIRS)
22$(CLEANDIRS):
23	$(call QUIET_CLEAN, test-$(@:clean-%=%)) $(Q)$(MAKE) -C $(@:clean-%=%) clean >/dev/null
24
25.PHONY: all clean $(SUBDIRS) $(CLEANDIRS) $(INSTALLDIRS)
26