commit b0afd529b3fa87479e8a5795f3ea9fa42ba3e815 (patch)
parent 5d5a7c59aacdc28a8ac76759fe5054cddd70701d
Author: alex <alex@garbash.com>
Date: Sun, 24 Oct 2021 23:08:20 -0400
make: Add clean target to remove built html
Not that we should be doing this on the live site... whoops!
Still, nice to have :)
Diffstat:
1 file changed, 9 insertions(+), 2 deletions(-)
diff --git 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 '/<body>/q' template.html; cmark < $<; printf "</body>\n</html>\n") > $@
+
+
+.PHONY: all clean