pandoc-blog/Makefile

31 lines
623 B
Makefile
Raw Permalink Normal View History

SRCS := $(shell find content pages -name '*.md')
HTML := $(SRCS:content/%.md=%.html)
HTML := $(HTML:pages/%.md=%.html)
vpath %.md content pages
vpath %.html dist
%.html: %.md
pandoc -t html \
--standalone \
-B templates/nav.html \
2022-03-04 00:00:50 +00:00
--template=templates/episode.template \
--css assets/styles/main.css \
--toc \
-o dist/$@ $<
index.md:
./bin/build-index.sh
rssfeed:
2022-03-04 00:00:50 +00:00
./bin/build-podcast.sh
build: $(HTML) index.md rssfeed
cp -R assets dist
pandoc -t html \
--standalone \
-H templates/header.html \
-B templates/nav.html \
-o dist/index.html \
--css assets/styles/main.css \
index.md app.yaml