e45aa7d8505c4d830acf1c3cefbc637f014c833e
[validation.git] / docker / mysql / Makefile
1 ##############################################################################
2 # Copyright (c) 2019 AT&T Intellectual Property. All rights reserved.        #
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 .PHONY: all
18 all: .push_image .push_manifest
19
20 # MySQL 5.6 is not supported on arm64 yet, skip building it for now
21 ifeq ($(shell uname -m), aarch64)
22 .PHONY: .build
23 .build::
24         echo "Skipping build on aarch64 platform!"
25         exit 0
26 .PHONY: .push_image
27 .push_image::
28         echo "Skipping push on aarch64 platform!"
29         exit 0
30 endif
31
32 .PHONY: build
33 build: .build
34
35 include ../build.mk