Depend on joy.h.

This commit is contained in:
Simon Forman 2023-02-04 18:59:59 -08:00
parent 62ed15d17a
commit bd525cc7ac
1 changed files with 4 additions and 0 deletions

View File

@ -15,11 +15,15 @@ GPERF_OPTS = --readonly-tables --enum --includes --hash-function-name=keyword_ha
joy: ${OBJS} $(STATIC_GCLIB)
joy.o: joy.h
# Gperf doesn't add anything to '{""}' unused entries in the wordlist.
# This causes "warning: missing field 'func' initializer [-Wmissing-field-initializers]"
# which is promoted to an error and holds up the show.
# But we can turn off that warning for the keyword code like so:
keywords.o: CFLAGS+=-Wno-missing-field-initializers
keywords.o: joy.h
keywords.c: KEYWORDS.txt
gperf --output-file=$@ $(GPERF_OPTS) $<