about summary refs log tree commit diff
path: root/makefile
diff options
context:
space:
mode:
authorRobert Günzler <r@gnzler.io>2024-11-25 15:38:11 +0100
committerRobert Günzler <r@gnzler.io>2024-11-25 15:38:11 +0100
commitefa5df89d2b940d9a6a0fd254d1a26ad4de9011e (patch)
treeb798938f9b4a7f98ce49923d9ab6767de467641b /makefile
parent6b4c8b3f088d274c5fded589def423a17d8893c2 (diff)
downloadsite-efa5df89d2b940d9a6a0fd254d1a26ad4de9011e.tar.gz
add makefile target to serve and watch for changes concurrently
Signed-off-by: Robert Günzler <r@gnzler.io>
Diffstat (limited to 'makefile')
-rw-r--r--makefile5
1 files changed, 4 insertions, 1 deletions
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