aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2020-01-20 23:34:14 +0100
committerJoris2020-01-20 23:35:24 +0100
commitd80802ac6c0d671840b58fbf93a22d7323a8f355 (patch)
treecd37de7cf9c6488180f1708673c63e566a8f773a /Makefile
parent6612972e0f8164bd5d062792ba175e1876e4084f (diff)
Use cabal instead of stack
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 6 insertions, 10 deletions
diff --git a/Makefile b/Makefile
index 7ccb5de..daa0ec1 100644
--- a/Makefile
+++ b/Makefile
@@ -7,22 +7,18 @@ stop:
@tmux kill-session -t personalPage
clean:
- @unset STACK_IN_NIX_SHELL && stack exec personalPage clean > /dev/null 2>&1 || true
- @unset STACK_IN_NIX_SHELL && stack clean > /dev/null
-
-install:
- @unset STACK_IN_NIX_SHELL && stack setup
+ @cabal new-clean
build:
- @unset STACK_IN_NIX_SHELL && stack build
- @unset STACK_IN_NIX_SHELL && stack exec personalPage build
+ @cabal new-build
+ @cabal new-exec personalPage build
deploy:
- @make build
- @unset STACK_IN_NIX_SHELL && stack exec personalPage deploy
+ @make clean build
+ @cabal new-exec personalPage deploy
watch:
@nodemon --watch src -e hs --exec 'make watch-command --silent'
watch-command:
- @unset STACK_IN_NIX_SHELL && (killall personalPage || :) && sleep 1 && stack build && stack exec personalPage clean && stack exec personalPage watch
+ @(killall personalPage || :) && sleep 1 && cabal new-build && cabal new-exec personalPage clean && cabal new-exec personalPage watch