beejournal/Makefile

37 lines
793 B
Makefile
Raw Permalink Normal View History

2022-02-27 21:06:40 +00:00
default: pandoc
MD_INPUTS=$(wildcard *.md)
MD2HTML_OUTPUTS=$(MD_INPUTS:.md=.html)
HTML_OUTPUTS := $(MD2HTML_OUTPUTS)
pandoc: $(HTML_OUTPUTS)
2022-02-27 21:14:26 +00:00
%.html: %.md footer.html todo.html
pandoc --toc --css=github-pandoc.css -A footer.html --standalone $< > $@
2022-02-27 21:06:40 +00:00
footer.html: footer.md
pandoc $< > $@
2022-02-27 21:14:26 +00:00
todo.html: todo.md
pandoc $< > $@
2022-02-27 21:06:40 +00:00
.PHONY: view
view: pandoc
firefox beejournal.html
.PHONY: edit
edit:
vim beejournal.md
2022-02-27 21:14:26 +00:00
.PHONY: publish
publish: pandoc
cp *.html ~/public_html/bees/
2022-03-02 19:01:59 +00:00
cp -r images ~/public_html/bees/
2022-02-27 21:14:26 +00:00
mv ~/public_html/bees/beejournal.html ~/public_html/bees/index.html
2022-03-04 00:30:18 +00:00
.PHONY: remotepub
remotepub: pandoc
scp *.html cymen@tilde.town:~/public_html/bees/
scp -r images cymen@tilde.town:~/public_html/bees/
scp beejournal.html cymen@tilde.town:~/public_html/bees/index.html