about summary refs log tree commit diff homepage
path: root/Makefile
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-24 18:14:34 -0400
committerJune McEnroe <june@causal.agency>2018-08-24 18:14:34 -0400
commit6a53db288a4698cb51b540b062d63a297fb806e3 (patch)
tree6d6ffaf795672da2967da6ca15aec291cef3ec5d /Makefile
parentRemove help (diff)
downloadtorus-6a53db288a4698cb51b540b062d63a297fb806e3.tar.gz
torus-6a53db288a4698cb51b540b062d63a297fb806e3.zip
Add client-side help page
Diffstat (limited to '')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 2b0ca87..9d00e9e 100644
--- a/Makefile
+++ b/Makefile
@@ -10,6 +10,15 @@ all: tags $(BINS)
 
 $(OBJS): torus.h
 
+client.o: help.h
+
+help.h:
+	head -c 4096 torus.dat \
+		| file2c -s -x 'static const uint8_t HELP_DATA[] = {' '};' \
+		> help.h
+	echo 'static const struct Tile *HELP = (const struct Tile *)HELP_DATA;' \
+		>> help.h
+
 tags: *.h *.c
 	ctags -w *.h *.c