15 lines
265 B
Makefile
15 lines
265 B
Makefile
MARKDOWN=$(shell find . -iname "*.md")
|
|
HTML=$(MARKDOWN:.md=.html)
|
|
|
|
.PHONY = all tar clean
|
|
|
|
all: $(HTML)
|
|
|
|
%.html: %.md
|
|
pandoc --from markdown --to html $< -o $@
|
|
|
|
tar: $(MARKDOWN)
|
|
tar --exclude=notes.tar.gz --exclude=.git/ -czvf notes.tar.gz ./
|
|
|
|
clean:
|
|
rm $(HTML)
|