aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..e350236
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,20 @@
+all: build
+
+start:
+ @nix-shell --command "tmuxinator local"
+
+stop:
+ @nix-shell --command "tmux kill-session -t personalPage"
+
+clean:
+ @cabal new-clean > /dev/null
+
+watch:
+ @nodemon --watch src/ application.conf ./data.yaml resume/ --ext hs,conf,yaml,cls --exec 'clear && make build-and-launch-server --silent'
+
+build-and-launch-server:
+ @(pkill personalPage || true) && (cabal new-run || true)
+
+.PHONY: build
+build:
+ @cabal new-build || true