chore: add Makefile
parent
5303e1f2ba
commit
37b59dc07a
|
@ -6,3 +6,6 @@
|
|||
|
||||
# VSCode
|
||||
.vscode
|
||||
|
||||
# QMK
|
||||
*.bin
|
||||
|
|
|
@ -0,0 +1,20 @@
|
|||
.PHONY: all format cp compile
|
||||
|
||||
all:
|
||||
$(MAKE) format
|
||||
$(MAKE) cp
|
||||
$(MAKE) compile
|
||||
|
||||
format:
|
||||
clang-format -i keymaps/haunt98/*.c keymaps/haunt98/*.h
|
||||
|
||||
cp:
|
||||
rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98
|
||||
cp -rf keymaps/haunt98 ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/
|
||||
|
||||
compile:
|
||||
qmk compile -kb dztech/dz60rgb_wkl/v2_1 -km haunt98
|
||||
mv ~/qmk_firmware/dztech_dz60rgb_wkl_v2_1_haunt98.bin .
|
||||
|
||||
clean:
|
||||
rm -rf dztech_dz60rgb_wkl_v2_1_haunt98.bin
|
10
README.md
10
README.md
|
@ -2,15 +2,9 @@
|
|||
|
||||
## Install
|
||||
|
||||
First, clone this repo to `qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98`.
|
||||
Run `make` to build the firmware.
|
||||
|
||||
Second, compile:
|
||||
|
||||
```sh
|
||||
qmk compile -kb dztech/dz60rgb_wkl/v2_1 -km haunt98
|
||||
```
|
||||
|
||||
Third, flash with [QMK Toolbox](https://github.com/qmk/qmk_toolbox)
|
||||
If success, use `dztech_dz60rgb_wkl_v2_1_haunt98.bin` to flash with [QMK Toolbox](https://github.com/qmk/qmk_toolbox).
|
||||
|
||||
## Features
|
||||
|
||||
|
|
Loading…
Reference in New Issue