This repository was archived by the owner on Mar 31, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (39 loc) · 1.24 KB
/
Makefile
File metadata and controls
48 lines (39 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
### SHELL ######################################################################
# Replace Debian Almquist Shell with Bash
ifeq ($(realpath $(SHELL)),/bin/dash)
SHELL := /bin/bash
endif
# Exit immediately if a command exits with a non-zero exit status
# TODO: .SHELLFLAGS does not exists on obsoleted macOS X-Code make
# .SHELLFLAGS = -ec
SHELL += -e
### DOCKER_VARIANTS ############################################################
# Docker image variants
DOCKER_VARIANTS += alpine \
centos \
debian
# Make targets propagated to all Docker image variants
DOCKER_VARIANT_TARGETS += build \
rebuild \
ci \
clean \
docker-pull \
docker-pull-baseimage \
docker-pull-dependencies \
docker-pull-image \
docker-pull-testimage \
docker-push \
docker-load-image \
docker-save-image
### MAKE_TARGETS ###############################################################
# Build all images and run all tests
.PHONY: all
all: ci
# Subdir targets
.PHONY: $(DOCKER_VARIANT_TARGETS)
$(DOCKER_VARIANT_TARGETS):
@for DOCKER_VARIANT in $(DOCKER_VARIANTS); do \
cd $(CURDIR)/$${DOCKER_VARIANT}; \
$(MAKE) $@; \
done
################################################################################