From 94636618bb7548a29e0de2c3d4831ebb6c51a645 Mon Sep 17 00:00:00 2001 From: Albert Krewinkel Date: Sun, 20 Oct 2024 20:23:20 +0200 Subject: [PATCH] Remove `push` targets from Makefile Pushing is done by the GitHub Action. --- Makefile | 60 +------------------------------------------------------- 1 file changed, 1 insertion(+), 59 deletions(-) diff --git a/Makefile b/Makefile index 2bbd92d..51109e5 100644 --- a/Makefile +++ b/Makefile @@ -98,24 +98,8 @@ test-$(1)-core: test-core test-$(1)-latex: test-latex test-$(1)-extra: test-extra endif -# And for push targets -.PHONY: \ - push-$(1) \ - push-$(1)-minimal \ - push-$(1)-core \ - push-$(1)-latex \ - push-$(1)-typst \ - push-$(1)-extra -push-$(1) push-$(1)-minimal push-$(1)-core push-$(1)-latex push-$(1)-extra: STACK = $(1) -push-$(1): push-minimal -push-$(1)-minimal: push-minimal -ifeq ($(1),$(filter $(1),alpine ubuntu)) -push-$(1)-core: push-core -push-$(1)-latex: push-latex -push-$(1)-typst: push-typst -push-$(1)-extra: push-extra -endif endef + # Generate convenience targets for all supported stacks. $(foreach img,$(image_stacks),$(eval $(call stack,$(img)))) @@ -221,48 +205,6 @@ test-typst: lint: shellcheck $(shell find . -name "*.sh") -.PHONY: push-minimal push-core push-latex push-extra -push-minimal: REPO ?= minimal -push-minimal: - ./build.sh push -v \ - -r $(REPO) \ - -s "$(STACK)" \ - -c "$(PANDOC_COMMIT)" \ - -d "$(makefile_dir)" \ - -t "$(STACK)-minimal" -push-core: REPO ?= core -push-core: - ./build.sh push -v \ - -r $(REPO) \ - -s "$(STACK)" \ - -c "$(PANDOC_COMMIT)" \ - -d "$(makefile_dir)" \ - -t "$(STACK)-core" -push-latex: REPO ?= latex -push-latex: - ./build.sh push -v \ - -r $(REPO) \ - -s "$(STACK)" \ - -c "$(PANDOC_COMMIT)" \ - -d "$(makefile_dir)" \ - -t "$(STACK)-latex" -push-typst: REPO ?= typst -push-typst: - ./build.sh push -v \ - -r $(REPO) \ - -s "$(STACK)" \ - -c "$(PANDOC_COMMIT)" \ - -d "$(makefile_dir)" \ - -t "$(STACK)-typst" -push-extra: REPO ?= extra -push-extra: - ./build.sh push -v \ - -r $(REPO) \ - -s "$(STACK)" \ - -c "$(PANDOC_COMMIT)" \ - -d "$(makefile_dir)" \ - -t "$(STACK)-extra" - .PHONY: docs docs-minimal docs: @pandoc "docs/$(REPO).md" \