qmk_userspace/keyboards/klor/post_rules.mk
Victor 41a0204fc9
Added Dynamic Layout selection
- Cleanup unused code and updated documentation
- add dynamic layout selection
  - Leveraged common_features.mk framework
  - Configure layout in keymap rules.mk
- Will test more but it is ready to ship
2024-05-15 07:52:23 -05:00

7 lines
326 B
Makefile

VALID_KLOR_LAYOUTS := polydactyl konrad yubitsume saegewerk
ifeq ($(filter $(KLOR_LAYOUT),$(VALID_KLOR_LAYOUTS)),)
$(call CATASTROPHIC_ERROR,Invalid KLOR_LAYOUT,KLOR_LAYOUT="$(KLOR_LAYOUT)" is not a valid Haptic driver)
else
OPT_DEFS += -DKLOR_$(strip $(shell echo $(KLOR_LAYOUT) | tr '[:lower:]' '[:upper:]'))
endif