aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJasper Van der Jeugt2020-07-28 23:25:57 +0200
committerJasper Van der Jeugt2020-07-28 23:25:57 +0200
commit125a792ec885d16fc0e41751d073caf2da9f2301 (patch)
tree607c34616ba7b6473b5a8ab1cf22c93acf78f292 /Makefile
parentf9716e24c2b41cfc416e227b275e2ae15866a370 (diff)
Mess around
Diffstat (limited to 'Makefile')
-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)