about summary refs log tree commit diff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile14
1 files changed, 7 insertions, 7 deletions
diff --git a/makefile b/makefile
index 8a24e90..37390b1 100644
--- a/makefile
+++ b/makefile
@@ -14,18 +14,18 @@ SRC     := $(htm_SRC) $(md_SRC:%.md=%.htm)
 
 # generator
 ZIG     ?= zig
-gen_SRC := src/main.zig
-gen_BIN := bin/gen
+rbl_SRC := src/main.zig src/gen.zig
+rbl_BIN := bin/rbl
 
-$(gen_BIN): $(gen_SRC)
+$(rbl_BIN): $(rbl_SRC)
 	$(ZIG) build-exe -lc -O Debug -freference-trace -femit-bin=$@ $<
 
 
 clean:
-	@ rm -rf site/* bin/* $(md_SRC:%.md=%.htm)
+	@ rm -rf site/* $(rbl_BIN) $(md_SRC:%.md=%.htm)
 
-gen: $(gen_BIN) $(SRC)
-	@ mkdir -p site/ && $(gen_BIN)
+gen: $(rbl_BIN) $(SRC)
+	@ mkdir -p site/ && $(rbl_BIN) gen
 
 watch:
 	@ find . -print | entr -nc -dd -- $(MAKE)
@@ -35,7 +35,7 @@ watch-and-serve:
 
 was: watch-and-serve
 
-.PHONY: all clean serve watch watch-and-serve was
+.PHONY: all gen clean serve watch watch-and-serve was
 
 include serve.mk
 include webdeploy.mk