aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJasper Van der Jeugt2020-07-30 19:42:26 +0200
committerJasper Van der Jeugt2020-07-30 19:42:26 +0200
commit3b7d11c6182b8aa3d3d4f9e36c213e4eba6c8d8f (patch)
treeefbf3a064adefa8cc1228edec835d7403068e779 /Makefile
parentfe56ddfbd14b3e7fbaee8732641bcc00fbd0c856 (diff)
Add cards from CardsAgainstCryptography
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 14 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 5c05542..0f7a475 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,11 @@ ELM_SOURCES=$(shell find client/src -name '*.elm')
ELM_MESSAGES_SOURCE=client/src/Messages.elm
.PHONY: build
-build: server/assets/client.js server/assets/client.html
+build: server/assets/client.js \
+ server/assets/client.html \
+ server/assets/style.css \
+ server/assets/black.txt \
+ server/assets/white.txt
server: build
cd server && stack exec cafp-server
@@ -20,5 +24,13 @@ server/assets/client.js: $(ELM_MESSAGES_SOURCE) $(ELM_SOURCES)
cd client && elm make src/Client.elm --output=../server/assets/client.js
server/assets/client.html: client/index.html
- mkdir -p server/assets
cp client/index.html $@
+
+server/assets/style.css: client/style.css
+ cp $< $@
+
+server/assets/black.txt: black.txt
+ cp $< $@
+
+server/assets/white.txt: white.txt
+ cp $< $@