From: Fred Sundvik Date: Sun, 7 Aug 2016 15:54:12 +0000 (+0300) Subject: Add backwards compability with makefile variables X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=459ddaceda252a7d8614c43f17cd4c8c14712d5f;p=qmk_firmware.git Add backwards compability with makefile variables --- diff --git a/Makefile b/Makefile index a14642af6..cf0a12f69 100644 --- a/Makefile +++ b/Makefile @@ -42,6 +42,20 @@ $(info $(ROOT_DIR)/keyboards) # Only consider folders with makefiles, to prevent errors in case there are extra folders KEYBOARDS := $(notdir $(patsubst %/Makefile,%,$(wildcard $(ROOT_DIR)/keyboards/*/Makefile))) +#Compability with the old make variables +ifdef keyboard + KEYBOARD := $(keyboard) +endif +ifdef sub + SUBPROJECT := $(sub) +endif +ifdef subproject + SUBPROJECT := $(subproject) +endif +ifdef keymap + KEYMAP := $(keymap) +endif + $(info Keyboard: $(KEYBOARD)) $(info Keymap: $(KEYMAP)) $(info Subproject: $(SUBPROJECT))