1
0

fix make clean

This commit is contained in:
Simon Michael
2024-01-18 09:52:54 -10:00
parent 3d9ada08d7
commit e8e5ff5edb

View File

@@ -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))