From efa5df89d2b940d9a6a0fd254d1a26ad4de9011e Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 25 Nov 2024 15:38:11 +0100 Subject: add makefile target to serve and watch for changes concurrently MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Robert Günzler --- makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makefile b/makefile index 04108ea..abe7de0 100644 --- a/makefile +++ b/makefile @@ -34,7 +34,10 @@ watch: serve: @ caddy file-server -r . -l :1414 +watch-and-serve: + @ ${MAKE} -j2 watch serve + deploy: run @ rsync -vhhh --delete -Ccrz ./ $(DEPLOY_HOST):$(DEPLOY_DIR)/ -.PHONY: all clean serve watch +.PHONY: all clean serve watch watch-and-serve -- cgit 1.4.1