logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

post_rules.mk (487B)


  1. OPT_ENCODER_TYPE ?= default
  2. VALID_OPT_ENCODER_TYPES := default simple tiny custom
  3. ifeq ($(filter $(OPT_ENCODER_TYPE),$(VALID_OPT_ENCODER_TYPES)),)
  4. $(call CATASTROPHIC_ERROR,Invalid OPT_ENCODER_TYPE,OPT_ENCODER_TYPE="$(OPT_ENCODER_TYPE)" is not a valid pointing device type)
  5. else
  6. ifneq ($(strip $(OPT_ENCODER_TYPE)), custom)
  7. VPATH += keyboards/ploopyco/common
  8. SRC += opt_encoder_$(strip $(OPT_ENCODER_TYPE)).c
  9. ANALOG_DRIVER_REQUIRED = yes
  10. endif
  11. endif