aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4c6da978a50f84b29263caa15447a34ce0845f5a (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
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'