forked from Nuclear-Squid/ergol
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (28 loc) · 863 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
all:
@for file in layouts/*.toml; do \
kalamine build $$file --out "layouts/$$(basename $${file%.*}).json"; \
done
@for file in layouts/*.yaml; do \
kalamine build $$file --out "layouts/$$(basename $${file%.*}).json"; \
done
watch:
@inotifywait -m layouts -e close_write | while read -r _path _action file; do \
case $$file in \
*yaml) kalamine build "layouts/$$file" --out "layouts/$$(basename "$${file%.*}").json";; \
*toml) kalamine build "layouts/$$file" --out "layouts/$$(basename "$${file%.*}").json";; \
esac \
done
dev:
pip3 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 layouts/ergol.toml
uninstall:
@echo "Unistaller script for XKB (GNU/Linux)."
@echo
xkalamine remove fr/ergol
@echo