aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJoris2017-03-05 15:44:50 +0100
committerJoris2017-03-05 15:44:50 +0100
commit8e448ffc31685427afaee62a0379c33525769a6a (patch)
tree4199b4aaf6734718f3ff65afcab422e46543ddea /Makefile
parenta269afd23073d03faee7f3c17bdbcf8f6b5de903 (diff)
Use stack
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 6 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 62f36a6..43f592e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,19 @@
all: build
clean:
- @./dist/build/Cooking/Cooking clean > /dev/null 2>&1 || true
- @cabal clean > /dev/null
+ @stack exec cooking clean > /dev/null 2>&1 || true
+ @stack clean > /dev/null
install:
- @cabal build
+ @stack setup
.PHONY: build
build:
- @cabal run build
+ @stack build
+ @stack exec cooking build
watch:
@nodemon --watch src -e hs --exec 'make watch-command --silent'
watch-command:
- @(killall Cooking || :) && sleep 1 && cabal run watch
+ @(killall cooking || :) && sleep 1 && stack build && stack exec cooking watch