add some style stuff

This commit is contained in:
Rhiannon Morris 2020-08-18 10:33:25 +02:00
parent 2872dca785
commit 22b4411641
109 changed files with 699 additions and 1 deletions

View file

@ -7,17 +7,25 @@ TEMPLATE ?= $(DATADIR)/template.html
PAGES != find $(PAGESDIR) -name '*.md'
OUTPUTPAGES = $(patsubst $(PAGESDIR)/%.md,$(BUILDDIR)/%.html,$(PAGES))
STYLE != find style -type f
OUTPUTSTYLE = $(patsubst %,$(BUILDDIR)/%,$(STYLE))
OUTPUT = $(OUTPUTPAGES) $(OUTPUTSTYLE)
.PHONY: all
all: build
.PHONY: build
build: $(OUTPUTPAGES)
build: $(OUTPUT)
$(BUILDDIR)/%.html: $(PAGESDIR)/%.md $(TEMPLATE)
mkdir -p $(dir $@)
pandoc -s --toc --template $(TEMPLATE) -o $@ $<
$(BUILDDIR)/%: %
mkdir -p $(dir $@)
cp $< $@
.PHONY: clean distclean
clean:
rm -rf $(BUILDDIR)