abouttreesummaryrefslogcommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJules Aguillon2023-06-25 15:52:24 +0200
committerJules Aguillon2023-06-25 15:52:24 +0200
commit8ba82d2555342f6cf5e14d19c1d7bcadf46ab604 (patch)
tree71495d1ab9cacbeffe8f8cf6abc069765ba2a54d /Makefile
parentf36864533c33f8f1986db150987e354c59c7482b (diff)
downloadunexpected-keyboard-8ba82d2555342f6cf5e14d19c1d7bcadf46ab604.tar.gz
unexpected-keyboard-8ba82d2555342f6cf5e14d19c1d7bcadf46ab604.zip
Generate layouts arrays used in settings
`gen_layouts.py` lists the layouts in `res/xml` and generate the `pref_layout_values` and `pref_layout_entries` arrays into `res/values/layouts.xml`. These arrays are hard to maintain as the order has to match, which is fragile. This relies on every layouts having a `name` attribute.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 2653bb6..b86019a 100644
--- a/Makefile
+++ b/Makefile
@@ -31,10 +31,14 @@ sync_translations:
check_layouts:
python check_layout.py $(wildcard res/xml/*.xml) > check_layout.output
+gen_layouts:
+ python gen_layouts.py
+
# Will modify the source tree.
-runtest: rebuild_special_font sync_translations check_layouts
+runtest: rebuild_special_font sync_translations check_layouts gen_layouts
-.PHONY: release debug installd clean rebuild_special_font check_layouts sync_translations runtest
+.PHONY: release debug installd clean rebuild_special_font check_layouts \
+ sync_translations runtest gen_layouts
$(shell mkdir -p _build)