Files
blog-writer/Makefile
2026-03-04 22:28:37 +01:00

27 lines
728 B
Makefile

ENV = export $(shell cat .env | grep -v '^\#' | grep -v '^$$' | xargs)
.PHONY: fetch write translate upload clean all
## Letölt egy wiki oldalt SOURCE.md-be
## Használat: make fetch URL=/path/to/page
fetch:
$(ENV) && python3 generator.py fetch $(URL)
## Blogposztot ír SOURCE.md-ből → BLOGPOST.md
write:
$(ENV) && python3 generator.py write
## Lefordítja BLOGPOST.md → TRANSLATED_BLOGPOST.md
translate:
$(ENV) && python3 generator.py translate
## Feltölti TRANSLATED_BLOGPOST.md-t a wikire
upload:
$(ENV) && python3 generator.py upload
## Törli az output mappából az .md fájlokat
clean:
$(ENV) && python3 generator.py clean
## Teljes pipeline: write → translate → upload
all: write translate upload