aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 90142d8..9260540 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,9 @@
+HS_SOURCES=$(shell find server/lib/ server/src -name '*.hs')
+ELM_MESSAGES_MODULE=client/src/Messages.elm
+
.PHONY: build
build:
cd server && stack build
+
+$(ELM_MESSAGES_MODULE): $(HS_SOURCES)
+ (cd server && stack exec cafp-generate-elm-types) >$(ELM_MESSAGES_MODULE)