#How to check in Makefile that some feature is enabled in the json config?
4 messages · Page 1 of 1 (latest)
In the C file, you would want #ifdef RGBLIGHT_ENABLE. Make sure to end it with #endif at the appropriate line.
I think what you’ve got there would be useful to check for flags supplied from the command line.
ifeq ($(strip $(RGBLIGHT_ENABLE)), yes) is fine, but you should be using a post_rules.mk instead