From 8ba82d2555342f6cf5e14d19c1d7bcadf46ab604 Mon Sep 17 00:00:00 2001 From: Jules Aguillon Date: Sun, 25 Jun 2023 15:52:24 +0200 Subject: 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. --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'Makefile') 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) -- cgit v1.2.3