beejournal/Makefile

37 lines
793 B
Makefile

default: pandoc
MD_INPUTS=$(wildcard *.md)
MD2HTML_OUTPUTS=$(MD_INPUTS:.md=.html)
HTML_OUTPUTS := $(MD2HTML_OUTPUTS)
pandoc: $(HTML_OUTPUTS)
%.html: %.md footer.html todo.html
pandoc --toc --css=github-pandoc.css -A footer.html --standalone $< > $@
footer.html: footer.md
pandoc $< > $@
todo.html: todo.md
pandoc $< > $@
.PHONY: view
view: pandoc
firefox beejournal.html
.PHONY: edit
edit:
vim beejournal.md
.PHONY: publish
publish: pandoc
cp *.html ~/public_html/bees/
cp -r images ~/public_html/bees/
mv ~/public_html/bees/beejournal.html ~/public_html/bees/index.html
.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