aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 677f1b6cd82965eff3eb24307f8d7c4475b60549 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
HS_SOURCES=$(shell find server/lib/ server/src -name '*.hs')
ELM_MESSAGES_MODULE=client/src/Messages.elm

.PHONY: build
build:
	cd server && stack build

server: build
	cd server && stack exec cafp-server

$(ELM_MESSAGES_MODULE): $(HS_SOURCES)
	(cd server && stack exec cafp-generate-elm-types) >$(ELM_MESSAGES_MODULE)