forked from fabi1cazenave/qwerty-lafayette
-
Notifications
You must be signed in to change notification settings - Fork 62
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (24 loc) · 725 Bytes
/
Makefile
File metadata and controls
30 lines (24 loc) · 725 Bytes
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
all:
@find keymaps -type f \( -name '*.toml' -o -name '*.yaml' \) | while read -r file; do \
kalamine build "$$file" --out "$$(echo $$file | sed 's/....$$/json/')"; \
done
watch:
@inotifywait -m -r keymaps -e close_write | while read -r path _action file; do \
case $$file in \
*.yaml | *.toml) echo kalamine build "$$path$$file" --out "$$path$$(basename "$${file%.*}").json";; \
esac \
done
dev:
pipx install kalamine
clean:
rm -rf dist/*
# the install/uninstall targets below require Kalamine v0.4.2+
install:
@echo "Installer script for XKB (GNU/Linux)."
@echo
xkalamine install keymaps/ergol.toml
uninstall:
@echo "Unistaller script for XKB (GNU/Linux)."
@echo
xkalamine remove fr/ergol
@echo