1 ##############################################################################
2 # Copyright (c) 2019 AT&T, ENEA AB, Nokia and others #
4 # Licensed under the Apache License, Version 2.0 (the "License"); #
5 # you maynot use this file except in compliance with the License. #
7 # You may obtain a copy of the License at #
8 # http://www.apache.org/licenses/LICENSE-2.0 #
10 # Unless required by applicable law or agreed to in writing, software #
11 # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT #
12 # 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 ##############################################################################
17 SUBDIRS := $(wildcard */.)
18 SUBDIRS_NAME := $(SUBDIRS:/.=)
19 SUBDIRS_BUILD := $(SUBDIRS:/.=-build)
20 SUBDIRS_PUSH := $(SUBDIRS:/.=-push)
26 build-all: $(SUBDIRS_BUILD)
29 push-all: $(SUBDIRS_PUSH)
31 .PHONY: $(SUBDIRS_NAME)
35 .PHONY: $(SUBDIRS_BUILD)
37 $(MAKE) -C $(@:-build=) build
39 .PHONY: $(SUBDIRS_PUSH)
41 $(MAKE) -C $(@:-push=) push-image