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
commit02c3c58225056b6f689d3375f79f3ad4233de041 (patch)
tree47dfe90e54be3364df06df393831651c5bc7fe1c /Makefile
parentRemove help (diff)
downloadtorus-02c3c58225056b6f689d3375f79f3ad4233de041.tar.gz
torus-02c3c58225056b6f689d3375f79f3ad4233de041.zip
Add client-side help page
Diffstat (limited to 'Makefile')
-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