PANDOC = pandoc --include-before-body=before_body.html.txt --include-after-body=after_body.html.txt
# In case you need content generating, use the script from https://github.com/ptpt/lips,
# otherwise just:
# CAT = cat
CAT = ./_lips/lips/src.awk

# find out all targets
HTMLS = $(patsubst %.md, %.html, $(wildcard *.md))

all: $(HTMLS)

index.html: $(filter-out index.html, $(wildcard *.html)) index.md index.py
	$(CAT) index.md | $(PANDOC) -o $@

how_this_site_is_generated.html: how_this_site_is_generated.md Makefile
	$(CAT) $< | $(PANDOC) -o $@

%.html: %.md
	$(CAT) $< | $(PANDOC) -o $@

.PHONY: all
