diff options
| author | Jules Aguillon | 2023-06-25 15:52:24 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-06-25 15:52:24 +0200 |
| commit | 8ba82d2555342f6cf5e14d19c1d7bcadf46ab604 (patch) | |
| tree | 71495d1ab9cacbeffe8f8cf6abc069765ba2a54d /Makefile | |
| parent | f36864533c33f8f1986db150987e354c59c7482b (diff) | |
| download | unexpected-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-- | Makefile | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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) |
