pandoc用のMakefile
すべてのMarkdownをHTMLに変換。
make
すべてのHTMLファイルを削除。
make clean
Makefileの内容
SOURCES := $(shell find ./ -type f -name '*.md')
TARGETS := $(patsubst %.md,%.html,$(SOURCES))
all: $(TARGETS)
%.html: %.md
pandoc -f markdown $< -t html -c ./theme.css --template=template.html5 -o $@
.PHONY: clean
clean:
rm -f ./*.html
rm -f ./2022/*.html