initial commit
This commit is contained in:
23
Makefile
Normal file
23
Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
ENV = export $(shell cat .env | grep -v '^\#' | grep -v '^$$' | xargs)
|
||||
|
||||
.PHONY: fetch write translate upload 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
|
||||
|
||||
## Teljes pipeline: write → translate → upload
|
||||
all: write translate upload
|
||||
Reference in New Issue
Block a user