Skip to content

Commit

Permalink
Remove push targets from Makefile
Browse files Browse the repository at this point in the history
Pushing is done by the GitHub Action.
  • Loading branch information
tarleb committed Oct 20, 2024
1 parent 31ff98f commit 9463661
Showing 1 changed file with 1 addition and 59 deletions.
60 changes: 1 addition & 59 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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))))

Expand Down Expand Up @@ -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" \
Expand Down

0 comments on commit 9463661

Please sign in to comment.