diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..e4b352c --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +all: build + +start: + @nix-shell --command "mux local" + +stop: + @tmux kill-session -t jardin + +clean: + @stack exec jardin clean > /dev/null 2>&1 || true + @stack clean > /dev/null + +install: + @stack setup + +.PHONY: build +build: + @stack build + @stack exec jardin build + +watch: + @nodemon --watch src -e hs --exec 'make watch-command --silent' + +watch-command: + @(killall jardin || :) && sleep 1 && stack build && stack exec jardin watch |