Added ability to set the MATRIX in build/make

example_keyboards
cr3473 10 years ago
parent 8c788f70f6
commit 59f2001b31

@ -47,13 +47,18 @@ TOP_DIR = ../..
# Directory keyboard dependent files exist # Directory keyboard dependent files exist
TARGET_DIR = . TARGET_DIR = .
# Default to PCB matrix
ifndef MATRIX
MATRIX=matrix_pcb.c
endif
$(warning MATRIX: $(MATRIX))
# # project specific files # # project specific files
ifdef COMMON ifdef COMMON
SRC = keymap_common.c \ SRC = keymap_common.c \
matrix_pcb.c \ $(MATRIX) \
led.c \ led.c \
backlight.c backlight.c
@ -66,7 +71,7 @@ endif
else else
SRC = extended_keymap_common.c \ SRC = extended_keymap_common.c \
matrix_pcb.c \ $(MATRIX) \
led.c \ led.c \
backlight.c backlight.c

Loading…
Cancel
Save