From 32617e00f49c2259bf99767c1f658691bc7fa20e Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 15 Aug 2021 23:10:16 +0200 Subject: Add haskell/composition post --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 1b4cb10..cfb1423 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,21 @@ -POSTS = $(filter-out $$template.html %.rendered.html,$(wildcard *.html **/*.html)) -RENDERED = $(POSTS:.html=.rendered.html) +MDPOSTS := $(wildcard *.md **/*.md) +MDHTML := $(MDPOSTS:.md=.html) + +POSTS := $(filter-out $$template.html %.rendered.html $(MDHTML),$(wildcard *.html **/*.html)) +POSTS += $(MDHTML) + +RENDERED := $(POSTS:.html=.rendered.html) .PHONY: all clean all: $(RENDERED) clean: - rm -f $(RENDERED) + rm -f $(RENDERED) $(MDHTML) + +$(MDHTML): %.html: %.md + cmark-gfm --unsafe <'$<' >'$@' -%.rendered.html: %.html $$template.html .tools/render.sh +$(RENDERED): %.rendered.html: %.html $$template.html .tools/render.sh .tools/render.sh '$<' -- cgit v1.2.3-70-g09d2