mirror of
https://github.com/qmk/qmk_userspace.git
synced 2025-04-29 04:07:18 -04:00
Initial structure.
This commit is contained in:
commit
92d62d05e8
12 changed files with 506 additions and 0 deletions
16
Makefile
Normal file
16
Makefile
Normal file
|
@ -0,0 +1,16 @@
|
|||
.SILENT:
|
||||
|
||||
MAKEFLAGS += --no-print-directory
|
||||
|
||||
QMK_USERSPACE := $(patsubst %/,%,$(dir $(shell realpath "$(lastword $(MAKEFILE_LIST))")))
|
||||
ifeq ($(QMK_USERSPACE),)
|
||||
QMK_USERSPACE := $(shell pwd)
|
||||
endif
|
||||
|
||||
QMK_FIRMWARE_ROOT = $(shell qmk config -ro user.qmk_home | cut -d= -f2 | sed -e 's@^None$$@@g')
|
||||
ifeq ($(QMK_FIRMWARE_ROOT),)
|
||||
$(error Cannot determine qmk_firmware location. `qmk config -ro user.qmk_home` is not set)
|
||||
endif
|
||||
|
||||
%:
|
||||
+$(MAKE) -C $(QMK_FIRMWARE_ROOT) $(MAKECMDGOALS) QMK_USERSPACE=$(QMK_USERSPACE)
|
Loading…
Add table
Add a link
Reference in a new issue