aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 34d0709f3a38953b50ecbed249cb73004e84141a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
start:
	@nix-shell --command "mux local"

stop:
	@tmux kill-session -t sharedCost

dist: clean install build
clean: clean-server clean-client
install: install-server install-client
build: build-server build-client

# Server
# ------

clean-server:
	@stack clean > /dev/null

install-server:
	@stack setup

build-server:
	@stack build || :

launch-server:
	@(killall sharedCost || :) && stack exec sharedCost

watch-server:
	@nodemon -e hs,conf --exec 'clear && make build-server --silent && make launch-server'

# Client
# ------

clean-client:
	@rm -r elm-stuff >/dev/null 2>&1 || true

install-client:
	@elm package install --yes

build-client:
	@elm make src/client/Main.elm --output public/javascripts/client.js || true

watch-client:
	@nodemon -e elm --exec 'clear && make build-client --silent'