chore: add Makefile

main
sudo pacman -Syu 2023-07-21 03:48:12 +07:00
parent 5303e1f2ba
commit 37b59dc07a
3 changed files with 25 additions and 8 deletions

3
.gitignore vendored
View File

@ -6,3 +6,6 @@
# VSCode
.vscode
# QMK
*.bin

20
Makefile Normal file
View File

@ -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

View File

@ -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