aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: daea513e11c9b6f377d761872ad2540ca4a626a9 (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
all: build

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

install:
	@npm install
	@elm package install

watch: kill-server launch-server watch-client

# Build and launch
# ----------------

kill-server:
	@fuser -k 8080/tcp || true

launch-server:
	@./node_modules/http-server/bin/http-server ./public -p 8080 &

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

watch-client:
	@./node_modules/nodemon/bin/nodemon.js --watch src -e elm --exec 'clear && make build --silent'