auto publish HTML
This commit is contained in:
parent
d434ce2004
commit
586233dde6
8
Makefile
8
Makefile
|
@ -5,7 +5,7 @@ source_files := $(shell find content/*.md)
|
||||||
target_files := $(patsubst content/%.md,gemini/%.gmi,$(source_files))
|
target_files := $(patsubst content/%.md,gemini/%.gmi,$(source_files))
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: default
|
||||||
default: build-gemini publish-gemini build-html
|
default: build-gemini publish-gemini build-html publish-html
|
||||||
|
|
||||||
gemini/%.gmi: content/%.md
|
gemini/%.gmi: content/%.md
|
||||||
lowdown -tgemini $< > $@
|
lowdown -tgemini $< > $@
|
||||||
|
@ -27,6 +27,10 @@ build-html:
|
||||||
clean:
|
clean:
|
||||||
echo ${target_files}
|
echo ${target_files}
|
||||||
|
|
||||||
.PHONY: publish
|
.PHONY: publish-gemini
|
||||||
publish-gemini: ${target_files}
|
publish-gemini: ${target_files}
|
||||||
rsync -av content/img content/extra gemini/index.gmi $^ gemini.bgenc.net:/var/gemini/
|
rsync -av content/img content/extra gemini/index.gmi $^ gemini.bgenc.net:/var/gemini/
|
||||||
|
|
||||||
|
.PHONY: publish-html
|
||||||
|
publish-html:
|
||||||
|
rsync -av docs/ /var/www/
|
||||||
|
|
Loading…
Reference in a new issue