qmk_keymaps/Makefile

30 lines
704 B
Makefile
Raw Normal View History

2023-07-20 20:59:17 +00:00
.PHONY: all format cp compile json clean
2023-07-20 20:48:12 +00:00
all:
$(MAKE) format
$(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:
2023-07-20 20:59:17 +00:00
$(MAKE) cp
2023-07-21 07:40:50 +00:00
qmk compile -j 8 -kb dztech/dz60rgb_wkl/v2_1 -km haunt98
2023-07-20 20:48:12 +00:00
mv ~/qmk_firmware/dztech_dz60rgb_wkl_v2_1_haunt98.bin .
2023-07-20 20:59:17 +00:00
json:
$(MAKE) cp
rm -rf keymaps_json/haunt98/keymap.json
qmk c2json -kb dztech/dz60rgb_wkl/v2_1 -km haunt98 -o keymaps_json/haunt98/keymap.json keymaps/haunt98/keymap.c
2023-07-20 20:48:12 +00:00
clean:
2023-07-20 21:10:49 +00:00
qmk clean
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
draw:
pipx install keymap-drawer