Skip to content

Commit

Permalink
refactor: unify location of generated build files
Browse files Browse the repository at this point in the history
Moving Vial's generated files to the same place all the other generated
files go means not having to tack on EXTRAINCDIRS.
  • Loading branch information
lesshonor committed Sep 9, 2023
1 parent 03fa9db commit 7766caa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions builddefs/common_features.mk
Original file line number Diff line number Diff line change
Expand Up @@ -635,13 +635,12 @@ ifeq ($(strip $(VIAL_ENABLE)), yes)
COMBO_ENABLE ?= yes
KEY_OVERRIDE_ENABLE ?= yes
SRC += $(QUANTUM_DIR)/vial.c
EXTRAINCDIRS += $(INTERMEDIATE_OUTPUT)
OPT_DEFS += -DVIAL_ENABLE -DNO_DEBUG -DSERIAL_NUMBER=\"vial:f64c2b3c\"

$(QUANTUM_DIR)/vial.c: $(INTERMEDIATE_OUTPUT)/vial_generated_keyboard_definition.h
$(QUANTUM_DIR)/vial.c: $(INTERMEDIATE_OUTPUT)/src/vial_generated_keyboard_definition.h

$(INTERMEDIATE_OUTPUT)/vial_generated_keyboard_definition.h: $(KEYMAP_PATH)/vial.json
python3 util/vial_generate_definition.py $(KEYMAP_PATH)/vial.json $(INTERMEDIATE_OUTPUT)/vial_generated_keyboard_definition.h
$(INTERMEDIATE_OUTPUT)/src/vial_generated_keyboard_definition.h: $(KEYMAP_PATH)/vial.json
python3 util/vial_generate_definition.py $(KEYMAP_PATH)/vial.json $(INTERMEDIATE_OUTPUT)/src/vial_generated_keyboard_definition.h
endif

ifeq ($(strip $(VIAL_INSECURE)), yes)
Expand Down

0 comments on commit 7766caa

Please sign in to comment.