aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 4 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index e432c86..efbf48b 100644
--- a/Makefile
+++ b/Makefile
@@ -3,13 +3,9 @@ all: build
clean:
@cabal clean > /dev/null
@rm -r elm-stuff >/dev/null 2>&1 || true
- @rm -r node_modules >/dev/null 2>&1 || true
install:
- @cabal2nix --shell . > sharedCost.nix
- @nix-shell sharedCost.nix -I ~ --command 'cabal configure'
@elm package install
- @npm install
# Watch
# -----
@@ -17,13 +13,13 @@ install:
watch: watch-server watch-elm watch-js
watch-server:
- @./node_modules/nodemon/bin/nodemon.js -e hs,conf --exec 'clear && make build-and-launch-server --silent' &
+ @nodemon -e hs,conf --exec 'clear && make build-and-launch-server --silent' &
watch-elm:
- @./node_modules/nodemon/bin/nodemon.js -e elm --exec 'clear && make build-elm --silent' &
+ @nodemon -e elm --exec 'clear && make build-elm --silent' &
watch-js:
- @./node_modules/nodemon/bin/nodemon.js --watch src/client/js --exec 'make build-js --silent'
+ @nodemon --watch src/client/js --exec 'make build-js --silent'
# Build and launch
# ----------------
@@ -39,6 +35,7 @@ kill-server:
# Build
# -----
+.PHONY: build
build: build-server build-elm build-js
build-server: