summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-15 09:52:54 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-15 09:52:54 +0200
commit9a2d8f37dea8e14afa57affb135def13954df547 (patch)
treeee7daa101ffdb76bc4a5932c3698b6a89613df78 /client/elm/battlemap/Makefile
Satisfied with Elm so far, let's go with it.
Diffstat (limited to 'client/elm/battlemap/Makefile')
-rw-r--r--client/elm/battlemap/Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/client/elm/battlemap/Makefile b/client/elm/battlemap/Makefile
new file mode 100644
index 0000000..54b52d8
--- /dev/null
+++ b/client/elm/battlemap/Makefile
@@ -0,0 +1,11 @@
+ELM_CC = elm-make
+SRC_DIR = src
+
+MAIN_MODULE = $(SRC_DIR)/Main.elm
+SUB_MODULES = $(shell find $(SRC_DIR) -type f | grep "elm$$")
+
+index.html: $(MAIN_MODULE) $(SUB_MODULES)
+ $(ELM_CC) $(MAIN_MODULE)
+
+clean:
+ rm -f index.html