qmk_keymaps/Makefile

32 lines
1.2 KiB
Makefile
Raw Normal View History

2023-07-22 22:04:21 +00:00
.PHONY: all format clean draw dztech_dz60rgb_wkl
2023-07-20 20:48:12 +00:00
all:
$(MAKE) format
2023-07-22 22:04:21 +00:00
$(MAKE) draw
2023-07-21 08:46:38 +00:00
$(MAKE) dztech_dz60rgb_wkl
2023-07-20 20:48:12 +00:00
format:
2023-07-21 08:46:38 +00:00
clang-format -i dztech_dz60rgb_wkl/keymaps/haunt98/*.c dztech_dz60rgb_wkl/keymaps/haunt98/*.h
2023-07-20 20:59:17 +00:00
2023-07-20 20:48:12 +00:00
clean:
2023-07-20 21:10:49 +00:00
qmk clean
rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98
2023-07-20 20:48:12 +00:00
rm -rf dztech_dz60rgb_wkl_v2_1_haunt98.bin
2023-07-21 02:52:51 +00:00
2023-07-22 22:04:21 +00:00
draw:
curl https://raw.githubusercontent.com/qmk/qmk_firmware/master/keyboards/dztech/dz60rgb_wkl/info.json --output dztech_dz60rgb_wkl/info.json
2023-07-22 22:49:09 +00:00
QMK_INFO=dztech_dz60rgb_wkl/info.json QMK_KEYMAP=dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json OUT=dztech_dz60rgb_wkl/asciiart/haunt98.txt go run ./cmd/asciigen/*.go
2023-07-22 22:04:21 +00:00
2023-07-21 08:46:38 +00:00
dztech_dz60rgb_wkl:
# Copy
rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98
cp -rf dztech_dz60rgb_wkl/keymaps/haunt98 ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/
2023-07-21 09:15:46 +00:00
# Lint
qmk lint -kb dztech/dz60rgb_wkl/v2_1 -km haunt98
2023-07-21 08:46:38 +00:00
# Compile
qmk compile -j 8 -kb dztech/dz60rgb_wkl/v2_1 -km haunt98
mv ~/qmk_firmware/dztech_dz60rgb_wkl_v2_1_haunt98.bin .
2023-07-22 18:02:56 +00:00
# JSON
2023-07-21 08:46:38 +00:00
rm -rf dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json
qmk c2json -kb dztech/dz60rgb_wkl/v2_1 -km haunt98 -o dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json dztech_dz60rgb_wkl/keymaps/haunt98/keymap.c