qmk_keymaps/Makefile

59 lines
2.1 KiB
Makefile
Raw Permalink Normal View History

2023-09-06 13:32:59 +00:00
.PHONY: all format go draw_qmkasciigen format_draw_caksoylar_keymap_drawer draw_caksoylar_keymap_drawer draw qmk_upstream
2023-07-20 20:48:12 +00:00
all:
2023-09-06 13:32:59 +00:00
$(MAKE) format
$(MAKE) draw
2023-07-20 20:48:12 +00:00
format:
clang-format -i dztech_dz60rgb_wkl/keymaps/haunt98/*.c \
dztech_dz60rgb_wkl/keymaps/haunt98/*.h \
users/haunt98/*.c \
users/haunt98/*.h
2023-09-06 13:32:59 +00:00
deno fmt dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json
2023-07-21 02:52:51 +00:00
2023-07-24 06:36:28 +00:00
# From changeloguru
go:
go install github.com/haunt98/go-test-color@latest
go-test-color -race -failfast ./...
golangci-lint run ./...
go install github.com/haunt98/gofimports/cmd/gofimports@latest
go install mvdan.cc/gofumpt@latest
gofimports -w --company github.com/make-go-great,github.com/haunt98 .
gofumpt -w -extra .
2023-08-10 07:04:24 +00:00
draw_qmkasciigen:
$(MAKE) go
go run ./cmd/qmkasciigen \
2023-09-06 13:32:59 +00:00
-qmk-keyboard dztech/dz60rgb_wkl/v2_1 \
-qmk-keymap-file dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json \
-out dztech_dz60rgb_wkl/asciiart/haunt98.txt
2023-08-10 07:04:24 +00:00
2023-08-10 10:33:09 +00:00
draw_qmkasciigen_demo:
go run ./cmd/qmkasciigen -print-out -allow-layers 0 -qmk-keyboard matthewdias/m3n3van
go run ./cmd/qmkasciigen -print-out -allow-layers 0 -qmk-keyboard matthewdias/minim
go run ./cmd/qmkasciigen -print-out -allow-layers 0 -qmk-keyboard moondrop/dash75
go run ./cmd/qmkasciigen -print-out -allow-layers 0 -qmk-keyboard ymdk/id75 -qmk-keymap via
2023-08-10 10:33:09 +00:00
2023-08-10 07:04:24 +00:00
format_draw_caksoylar_keymap_drawer:
2023-08-09 18:11:28 +00:00
bun upgrade
2023-09-09 04:34:34 +00:00
bunx prettier --write ./dztech_dz60rgb_wkl/caksoylar_keymap_drawer/*.yaml
2023-08-09 18:11:28 +00:00
2023-08-10 07:04:24 +00:00
draw_caksoylar_keymap_drawer:
2023-08-06 09:23:38 +00:00
# https://github.com/caksoylar/keymap-drawer
pipx install keymap-drawer
2023-08-29 02:42:11 +00:00
pipx upgrade keymap-drawer
2023-08-09 18:06:24 +00:00
keymap -c dztech_dz60rgb_wkl/caksoylar_keymap_drawer/config.yaml \
parse -q dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json > \
2023-08-09 17:58:44 +00:00
dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.yaml
2023-08-09 18:06:24 +00:00
keymap -c dztech_dz60rgb_wkl/caksoylar_keymap_drawer/config.yaml \
draw dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.yaml > \
dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.svg
2023-08-10 07:04:24 +00:00
draw:
$(MAKE) draw_qmkasciigen
$(MAKE) draw_caksoylar_keymap_drawer
$(MAKE) format_draw_caksoylar_keymap_drawer
qmk_upstream:
curl https://raw.githubusercontent.com/qmk/qmk_firmware/master/.clang-format --output .clang-format