# lane jpmenu1: the language system on the Mac. Not part of the IDF build.
#   make -C components/l10n/host test      the C side (l10n_test), the master/translation checks (check_l10n.py)
#   make -C components/l10n/host report    which ids fall back to English in each language
CC ?= cc
test: l10n_test
	./l10n_test ../lang/strings_en.txt
	python3 -I ../tools/check_l10n.py
l10n_gen_host.c: $(wildcard ../lang/*.tsv) $(wildcard ../tools/*.py) $(wildcard ../fonts/*.bdf)
	python3 -I ../tools/gen_l10n.py $@ --host 2>/dev/null
l10n_test: l10n_test.c ../l10n.c ../l10n.h l10n_gen_host.c
	$(CC) -O1 -g -Wall -Wextra -std=gnu11 -DL10N_HOST -I.. -o $@ l10n_test.c ../l10n.c l10n_gen_host.c
report:
	python3 -I ../tools/check_l10n.py --report
.PHONY: test report
