From b0afd529b3fa87479e8a5795f3ea9fa42ba3e815 Mon Sep 17 00:00:00 2001 From: alex Date: Sun, 24 Oct 2021 23:08:20 -0400 Subject: [PATCH] make: Add clean target to remove built html Not that we should be doing this on the live site... whoops! Still, nice to have :) --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 863c3eb..487c4e7 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,13 @@ -.PHONY: all -all: index.html root-index.html +BUILT = index.html root-index.html + +all: $(BUILT) + +clean: + rm -f $(BUILT) .SUFFIXES: .md .html .md.html: (sed '//q' template.html; cmark < $<; printf "\n\n") > $@ + + +.PHONY: all clean -- libgit2 1.1.1