diff options
| author | Robert Günzler <r@gnzler.io> | 2024-11-25 15:38:11 +0100 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2024-11-25 15:38:11 +0100 |
| commit | efa5df89d2b940d9a6a0fd254d1a26ad4de9011e (patch) | |
| tree | b798938f9b4a7f98ce49923d9ab6767de467641b | |
| parent | 6b4c8b3f088d274c5fded589def423a17d8893c2 (diff) | |
| download | site-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 '')
| -rw-r--r-- | makefile | 5 |
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 |