define generate_gperf_lookup
src/$(1)_lookup.c: src/$(1).gperf
$$(if $$(quiet),@echo " GEN $$@")
- $$(Q)$(2) $$< | $$(GPERF) >$$@.tmp
+ $$(Q)$(2) $$< | $$(GPERF) | sed 's/#error/#warning/' >$$@.tmp
# Fix for gperf < 3.1 (fix parameter type and remove inlining of the get function):
$$(Q)perl -00 -pi -e 's/unsigned int len/size_t len/; s/#ifdef __GNUC__.*?gnu_inline.*?#endif\n#endif\n//sg' $$@.tmp
$$(Q)echo "size_t $(1)_count(void) { return $$$$(perl -ne '/TOTAL_KEYWORDS = (.+?),/ && print $$$$1' $$@.tmp); }" >>$$@.tmp
$(CPPCHECK) --suppressions-list=$(CPPCHECK_SUPPRESSIONS) \
--inline-suppr -q --enable=all --force -I . \
--template='cppcheck: warning: {id}:{file}:{line}: {message}' \
- $(non_3pp_sources) src/main.c $(test_sources)
+ $(non_3pp_sources) src/confitems_lookup.c src/main.c $(test_sources)
.PHONY: shellcheck
shellcheck: test/suites/*.bash