about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--makefile5
1 files changed, 2 insertions, 3 deletions
diff --git a/makefile b/makefile
index 8cc0ad7..8257661 100644
--- a/makefile
+++ b/makefile
@@ -6,7 +6,6 @@ PANDOC_PREPROC ?= preproc.lua
 htm_SRC := $(shell find src/inc/ -name '*.htm' -print)
 md_SRC  := $(shell find src/inc/ -name '*.md' -print)
 SRC     := $(htm_SRC) $(md_SRC:%.md=%.htm)
-DST     := site
 
 # see https://pandoc.org/MANUAL.html#pandocs-markdown
 %.htm: %.md $(PANDOC_PREPROC)
@@ -23,10 +22,10 @@ $(gen_BIN): $(gen_SRC)
 
 
 clean:
-	@ rm -f $(DST)/* bin/* $(md_SRC:%.md=%.htm)
+	@ rm -rf site/* bin/* $(md_SRC:%.md=%.htm)
 
 gen: $(gen_BIN) $(SRC)
-	@ mkdir -p $(DST) && $(gen_BIN)
+	@ mkdir -p site/ && $(gen_BIN)
 
 watch:
 	@ find . -print | entr -nc -dd -- $(MAKE)