forked from He4eT/oddkb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (33 loc) · 908 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Flashing the keyboard:
# make flash
qmk_dir = vial-qmk
keyboard = handwired/dactyl_manuform/5x6_5
keymap = KEYMAP
target = avrdude
keymap_path = ${qmk_dir}/keyboards/${keyboard}/keymaps/${keymap}/
build_cmd = sudo util/docker_build.sh ${keyboard}:${keymap}:${target}
keymap_clean:
rm -rf ${keymap_path}
keymap_copy: keymap_clean
mkdir ${keymap_path}
cp keymap/* ${keymap_path}
qmk_flash:
cd ${qmk_dir} && ${build_cmd}
flash:
@make keymap_copy
@make qmk_flash
@make keymap_clean
# Creating layer previews:
# make preview[_copy] [layer=number]
layer = -1
preview_cmd = node \
./preview_generator/preview_generator.js \
"${PWD}/keymap/keymap.c" \
"$(layer)"
preview:
@${preview_cmd}
preview_copy:
@${preview_cmd} | xclip -sel clipboard
@echo 'The layout has been copied to the clipboard!'
@echo 'Paste it into the "Raw Data" tab here:'
@echo 'http://www.keyboard-layout-editor.com/'