From e2f3c00079a93e5030a84a5a375dd50f192e2dba Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Wed, 8 Feb 2023 12:46:31 +0100 Subject: Makefile: split long commands --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index be4e3db..858d3f2 100644 --- a/Makefile +++ b/Makefile @@ -43,7 +43,8 @@ login: ifndef DOCKER_PASSWORD $(error Please define DOCKER_PASSWORD) endif - @echo '$(call escape,$(DOCKER_PASSWORD))' | docker login --username '$(call escape,$(DOCKER_USERNAME))' --password-stdin + @echo '$(call escape,$(DOCKER_PASSWORD))' \ + | docker login --username '$(call escape,$(DOCKER_USERNAME))' --password-stdin .PHONY: build # Build natively by default. @@ -104,13 +105,20 @@ buildx/rm: docker buildx rm '$(call escape,$(PROJECT))_builder' buildx/build/%: DO - docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$*' --platform '$(call escape,$(PLATFORMS))' '$*/' + docker buildx build \ + -t '$(call escape,$(DOCKER_USERNAME))/$*' \ + --platform '$(call escape,$(PLATFORMS))' \ + '$*/' .PHONY: buildx/build buildx/build: buildx/build/dump1090 buildx/build/fr24feed buildx/push/%: DO - docker buildx build -t '$(call escape,$(DOCKER_USERNAME))/$*' --platform '$(call escape,$(PLATFORMS))' --push '$*/' + docker buildx build \ + -t '$(call escape,$(DOCKER_USERNAME))/$*' \ + --platform '$(call escape,$(PLATFORMS))' \ + --push \ + '$*/' .PHONY: buildx/push buildx/push: buildx/push/dump1090 buildx/push/fr24feed -- cgit v1.2.3