From 02c3c58225056b6f689d3375f79f3ad4233de041 Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 24 Aug 2018 18:14:34 -0400 Subject: Add client-side help page --- Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Makefile') 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 -- cgit 1.4.1