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

start:
	@tmuxinator local

stop:
	@tmux kill-session -t cooking

test:
	@pulp --psc-package test --src-path js

clean:
	@rm -rf node_modules
	@rm -rf .psc-package
	@cabal new-exec cooking clean > /dev/null 2>&1 || true
	@cabal new-clean > /dev/null

install:
	@npm install
	@psc-package install

.PHONY: build
build:
	@cabal new-build
	@cabal new-exec cooking build

deploy:
	@make clean build
	@cabal new-exec cooking deploy

watch:
	@nodemon --watch src -e hs --exec 'make watch-command --silent'

watch-js:
	@pulp --psc-package --watch build --src-path js

watch-command:
	@(killall cooking || :) && sleep 1 && cabal new-build && cabal new-exec cooking watch