blob: 8e9ceda65be723145446f130e96ff509df39e0dd [file] [log] [blame]
Mike Marchetti230c5402017-09-20 13:43:06 -04001#
2# Copyright 2017 Sandvine
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15#
16
17SUBDIRS_CLEAN = $(addsuffix .clean, $(SUBDIRS))
tierno04720c72017-11-23 18:19:34 +010018SUBDIRS_TEST = $(addsuffix .test, $(SUBDIRS))
Mike Marchetti230c5402017-09-20 13:43:06 -040019
20.PHONY: $(SUBDIRS) $(SUBDIRS_CLEAN) clean
21
22all: $(SUBDIRS)
23
24clean: $(SUBDIRS_CLEAN)
25
tierno04720c72017-11-23 18:19:34 +010026test: $(SUBDIRS_TEST)
27
Mike Marchetti230c5402017-09-20 13:43:06 -040028$(SUBDIRS_CLEAN): %.clean:
29 @$(MAKE) --no-print-directory -C $* clean
30
tierno04720c72017-11-23 18:19:34 +010031$(SUBDIRS_TEST): %.test:
32 @$(MAKE) --no-print-directory -C $* test
33
Mike Marchetti230c5402017-09-20 13:43:06 -040034$(SUBDIRS):
35 @$(MAKE) --no-print-directory -C $@