diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-07 03:19:27 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-07 03:19:27 +0300 |
commit | 57155a6b9f923f7f86b4ce168b4ba318c1d75f5a (patch) | |
tree | 1c242e5f7caf9210b28eb70aa3ab85b5020bbd8f | |
parent | Dockerfile: best practices (diff) | |
download | fr24feed-57155a6b9f923f7f86b4ce168b4ba318c1d75f5a.tar.gz fr24feed-57155a6b9f923f7f86b4ce168b4ba318c1d75f5a.zip |
Makefile: best practices
Diffstat (limited to '')
-rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -2,6 +2,7 @@ # Basically a collection of really small shell scripts. MAKEFLAGS += --no-builtin-rules --no-builtin-variables --warn-undefined-variables +unexport MAKEFLAGS .DEFAULT_GOAL := all .DELETE_ON_ERROR: .SUFFIXES: @@ -45,8 +46,6 @@ ifdef DOCKER_PASSWORD $(eval $(call noexpand,DOCKER_PASSWORD)) endif -curl := curl --silent --show-error --location --dump-header - --connect-timeout 20 - .PHONY: all all: build @@ -130,11 +129,13 @@ compose/push: check-push compose/build # The simple way to build multiarch repos is `docker buildx`. binfmt_image := docker/binfmt:66f9012c56a8316f9244ffd7622d7c21c1f6f28d + .PHONY: fix-binfmt -# Re-register binfmt_misc formats with the F flag (required e.g. on Bionic): fix-binfmt: docker run --rm --privileged '$(call escape,$(binfmt_image))' +curl := curl --silent --show-error --location --dump-header - --connect-timeout 20 + buildx_url := https://github.com/docker/buildx/releases/download/$(BUILDX_VERSION)/buildx-$(BUILDX_VERSION).linux-amd64 .PHONY: buildx/install |