Update the docker registry
[validation.git] / docker / Makefile
1 ##############################################################################
2 # Copyright (c) 2019 AT&T, ENEA AB, Nokia and others                         #
3 #                                                                            #
4 # Licensed under the Apache License, Version 2.0 (the "License");            #
5 # you maynot use this file except in compliance with the License.            #
6 #                                                                            #
7 # You may obtain a copy of the License at                                    #
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, 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 ##############################################################################
16
17 SUBDIRS := $(wildcard */.)
18 SUBDIRS_NAME := $(SUBDIRS:/.=)
19 SUBDIRS_BUILD := $(SUBDIRS:/.=-build)
20 SUBDIRS_PUSH := $(SUBDIRS:/.=-push)
21
22 .PHONY: all
23 all: $(SUBDIRS_NAME)
24
25 .PHONY: build-all
26 build-all: $(SUBDIRS_BUILD)
27
28 .PHONY: push-all
29 push-all: $(SUBDIRS_PUSH)
30
31 .PHONY: $(SUBDIRS_NAME)
32 $(SUBDIRS_NAME):
33         $(MAKE) -C $@
34
35 .PHONY: $(SUBDIRS_BUILD)
36 $(SUBDIRS_BUILD): $(SUBDIRS)
37         $(MAKE) -C $< build
38
39 .PHONY: $(SUBDIRS_PUSH)
40 $(SUBDIRS_PUSH): $(SUBDIRS)
41         $(MAKE) -C $< .push_image
42
43 include build.mk