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))
|
||||
|
||||
.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/
|
||||
|
|
Loading…
Reference in a new issue