1
0
Fork 0

auto publish HTML

This commit is contained in:
Kaan Barmore-Genç 2022-04-03 18:17:04 -04:00
parent d434ce2004
commit 586233dde6
1 changed files with 6 additions and 2 deletions

View File

@ -5,7 +5,7 @@ source_files := $(shell find content/*.md)
target_files := $(patsubst content/%.md,gemini/%.gmi,$(source_files))
.PHONY: default
default: build-gemini publish-gemini build-html
default: build-gemini publish-gemini build-html publish-html
gemini/%.gmi: content/%.md
lowdown -tgemini $< > $@
@ -27,6 +27,10 @@ build-html:
clean:
echo ${target_files}
.PHONY: publish
.PHONY: publish-gemini
publish-gemini: ${target_files}
rsync -av content/img content/extra gemini/index.gmi $^ gemini.bgenc.net:/var/gemini/
.PHONY: publish-html
publish-html:
rsync -av docs/ /var/www/