diff options
| author | la-ninpre <aaoth@aaoth.xyz> | 2024-06-05 00:12:37 +0300 |
|---|---|---|
| committer | la-ninpre <aaoth@aaoth.xyz> | 2024-06-05 00:12:37 +0300 |
| commit | 7ff9d1b94f354066398a5925a91f5fc2d5c7a839 (patch) | |
| tree | 4babd76924b9eacc1f92b3016462ce09f6ebf403 /Makefile | |
| parent | 2c4639a23e6f22119f190a08fb44af427b6fad60 (diff) | |
| download | qmk-userspace-7ff9d1b94f354066398a5925a91f5fc2d5c7a839.tar.gz qmk-userspace-7ff9d1b94f354066398a5925a91f5fc2d5c7a839.zip | |
restructure as external userspace
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4b045ed --- /dev/null +++ b/Makefile @@ -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) |
