diff options
| author | Robert Günzler <r@gnzler.io> | 2025-01-07 13:27:09 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2025-01-07 15:49:51 +0100 |
| commit | 56951dd8a3ab52a881f244381b72a1d5701f3bb4 (patch) | |
| tree | 18161a1f63fb50c14fff12ac1ef6a18b5a1f398a /makefile | |
| parent | 8887d1c40882cc9cdae30eca77f373f78bcb0ae2 (diff) | |
| download | site-56951dd8a3ab52a881f244381b72a1d5701f3bb4.tar.gz | |
hardcode site path in makefile
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 5 |
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) |