diff options
| author | user <user@clank> | 2026-09-02 16:33:20 +0200 |
|---|---|---|
| committer | user <user@clank> | 2026-09-02 16:33:20 +0200 |
| commit | 6c1afdc57aa892ed274cc4b9a54bb40e39a20ea6 (patch) | |
| tree | a6c67c3e3ccc24b5304e45291f2cc40871853951 /web | |
| parent | release: v0.1.5 paperwork -- formula and PKGBUILD pinned (diff) | |
| download | slosh-6c1afdc57aa892ed274cc4b9a54bb40e39a20ea6.tar.gz slosh-6c1afdc57aa892ed274cc4b9a54bb40e39a20ea6.tar.xz slosh-6c1afdc57aa892ed274cc4b9a54bb40e39a20ea6.zip | |
webdemo: generate terminfo.h -- pty.c includes it now
The demo Makefile compiles pty.c with its own rules and never
learned the new header, so the v0.1.5 tag cannot build its own demo
and ship's website step died there. Same generation recipe as the
top-level Makefile; the tag being immutable, 0.1.5's site publishes
from master.
Diffstat (limited to 'web')
| -rw-r--r-- | web/demo/Makefile | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/web/demo/Makefile b/web/demo/Makefile index 431bb53..03d51b4 100644 --- a/web/demo/Makefile +++ b/web/demo/Makefile @@ -105,7 +105,16 @@ build/logo.h: $(ROOT)/logo.txt | build sed -e 's/\\\\/\\\\\\\\/g' -e 's/"/\\\\"/g' -e 's/^/ "/' -e 's/$$/",/' $(ROOT)/logo.txt; \ printf '};\n'; } > $@ -build/obj/%.o: $(ROOT)/src/%.c build/version.h build/logo.h $(VT_LIB) | build/obj +# The embedded terminfo entry, exactly as the top-level Makefile bakes it: +# pty.c includes it, and this Makefile compiles pty.c with its own rules. +build/terminfo.h: $(ROOT)/contrib/terminfo/xterm-ghostty.terminfo | build + $(call say,[GEN],$@) + $(Q){ printf '/* generated from contrib/terminfo/xterm-ghostty.terminfo */\n'; \ + printf 'static const unsigned char TERMINFO_GHOSTTY[] = {\n'; \ + od -An -v -tx1 $< | sed -e 's/ \([0-9a-f][0-9a-f]\)/0x\1,/g'; \ + printf '};\n'; } > $@ + +build/obj/%.o: $(ROOT)/src/%.c build/version.h build/logo.h build/terminfo.h $(VT_LIB) | build/obj $(call say,[CC],$(notdir $<)) $(Q)$(CC) $(CFLAGS) -c $< -o $@ |
