From e8e5ff5edbc9b685a5787486e14645ec4055a426 Mon Sep 17 00:00:00 2001 From: Simon Michael Date: Thu, 18 Jan 2024 09:52:54 -1000 Subject: [PATCH] fix make clean --- Makefile | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index b6b39dd..7ca0ae8 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,12 @@ all: html # Generate html from all md files in src/, in out/ -html: $(patsubst src/%,out/%,$(patsubst %.md,%.html,$(wildcard src/*.md src/quickref/*.md))) Makefile +html: Makefile $(patsubst src/%,out/%,$(patsubst %.md,%.html,$(wildcard src/*.md src/quickref/*.md))) + +# keep synced with above +# keep src/*.md filenames clean (no apostrophes..) or this will break +clean: + rm -f $(patsubst src/%,out/%,$(patsubst %.md,%.html,$(wildcard src/*.md src/quickref/*.md))) PANDOC?=pandoc @@ -42,6 +47,3 @@ html-watch watch: (sleep 1; $(BROWSE) http://localhost:$(LIVERELOADPORT)/) & $(LIVERELOAD) out -clean: - rm -f $(patsubst %.md,%.html,$(wildcard *.md)) -