-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 962 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 962 Bytes
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
all: help
help: ## output help for all targets
@echo "Local run for creating campaigns using Listmonk"
@echo "see README.md for details"
@echo
@awk 'BEGIN {FS = ":.*?## "}; \
/^###/ {printf "\n\033[1;33m%s\033[0m\n", substr($$0, 5)}; \
/^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-18s\033[0m %s\n", $$1, $$2}' \
$(MAKEFILE_LIST)
PLANTUML_DIAGRAMS=$(shell echo assets/C4/*.puml)
PLANTUML_DIAGRAMS_PNG=$(PLANTUML_DIAGRAMS:.puml=.png)
$(PLANTUML_DIAGRAMS_PNG): %.png: %.puml
plantuml $<
create_campaign: ## check for new items in your feed and create a campaign
uv run listmonk_rss.py
dry_run: ## check for new items in your feed and create a campaign
uv run listmonk_rss.py --dry-run
github_workflow: ## test github workflow using act
act workflow_dispatch --secret-file .env --var-file .env --container-architecture linux/amd64 --artifact-server-path /tmp/artifacts
diagrams: $(PLANTUML_DIAGRAMS_PNG) ## Generate architecture diagrams