chore: add qmk upstream to sync with qmk master

main
sudo pacman -Syu 2023-08-09 18:07:01 +07:00
parent a793ead63e
commit 8de3195053
1 changed files with 6 additions and 2 deletions

View File

@ -1,8 +1,9 @@
.PHONY: all format clean go draw qmk_init qmk_clean dztech_dz60rgb_wkl .PHONY: all format clean go draw qmk_upstream qmk_init qmk_clean dztech_dz60rgb_wkl
all: all:
$(MAKE) format $(MAKE) format
$(MAKE) draw $(MAKE) draw
$(MAKE) qmk_upstream
format: format:
clang-format -i dztech_dz60rgb_wkl/keymaps/haunt98/*.c dztech_dz60rgb_wkl/keymaps/haunt98/*.h & \ clang-format -i dztech_dz60rgb_wkl/keymaps/haunt98/*.c dztech_dz60rgb_wkl/keymaps/haunt98/*.h & \
@ -29,6 +30,9 @@ draw:
keymap parse -q dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json > dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.yaml keymap parse -q dztech_dz60rgb_wkl/keymaps_json/haunt98/keymap.json > dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.yaml
keymap draw dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.yaml > dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.svg keymap draw dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.yaml > dztech_dz60rgb_wkl/caksoylar_keymap_drawer/keymap.svg
qmk_upstream:
curl https://raw.githubusercontent.com/qmk/qmk_firmware/master/.clang-format --output .clang-format
qmk_init: qmk_init:
qmk setup -H ~/qmk_firmware qmk setup -H ~/qmk_firmware
qmk git-submodule qmk git-submodule
@ -39,7 +43,7 @@ qmk_clean:
rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98 rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98
dztech_dz60rgb_wkl: dztech_dz60rgb_wkl:
$(MAKE) qmk $(MAKE) qmk_init
# Copy # Copy
rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98 rm -rf ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/haunt98
cp -rf dztech_dz60rgb_wkl/keymaps/haunt98 ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/ cp -rf dztech_dz60rgb_wkl/keymaps/haunt98 ~/qmk_firmware/keyboards/dztech/dz60rgb_wkl/keymaps/