# Find all markdown files
MARKDOWN=$(shell find . -not \( -path ./old -prune \) -iname "*.md")
# Form all 'html' counterparts
HTML=$(MARKDOWN:.md=.html)

.PHONY = all clean
all: $(HTML)

%.html: %.md
	pandoc --from markdown --to html5 --css style.css --toc --standalone "$<" -o "$@"

clean:
	rm $(HTML)

push: all
	rsync . garret@tilde.club:public_html/ -va --del
#	rsync . "garret@zah:www/fansubbing/~/" -va --del

# https://computableverse.com/blog/create-website-using-pandoc-make-file
