diff options
| author | Jules Aguillon | 2023-06-03 21:03:05 +0200 |
|---|---|---|
| committer | Jules Aguillon | 2023-06-03 21:03:05 +0200 |
| commit | e5ae4816df6a48d6ad61c32654f14f108cac6a34 (patch) | |
| tree | 199c15cbb5ded8d18aa83089b2c590abb3c0ea83 /Makefile | |
| parent | f451902efa074a58953f9f5d69dd56812d854661 (diff) | |
| download | unexpected-keyboard-e5ae4816df6a48d6ad61c32654f14f108cac6a34.tar.gz unexpected-keyboard-e5ae4816df6a48d6ad61c32654f14f108cac6a34.zip | |
Add automated checks on layouts
The script `check_layout.py` checks some properties about layouts.
No check is an error.
The result of running this script on every layouts is stored in the file
`check_layout.output`, which is useful to track changes.
Add make rules to run this script as well as `sync_translations`.
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 22 |
1 files changed, 19 insertions, 3 deletions
@@ -22,10 +22,19 @@ clean: rm -rf _build/*.dex _build/class _build/gen _build/*.apk _build/*.unsigned-apk \ _build/*.idsig _build/assets -rebuild_special_font: - cd srcs/special_font && fontforge -lang=ff -script build.pe *.svg +rebuild_special_font: _build/special_font.ttf + cp "$<" srcs/special_font/result.ttf -.PHONY: release debug installd clean rebuild_special_font +sync_translations: + python sync_translations.py + +check_layouts: + python check_layout.py $(wildcard res/xml/*.xml) > check_layout.output + +# Will modify the source tree. +runtest: rebuild_special_font sync_translations check_layouts + +.PHONY: release debug installd clean rebuild_special_font check_layouts sync_translations runtest $(shell mkdir -p _build) @@ -117,3 +126,10 @@ _build/classes.dex: $(JAVA_FILES) $(R_FILE) -sourcepath $(SRC_DIR):$(GEN_DIR) \ $^ $(ANDROID_BUILD_TOOLS)/d8 --output $(@D) $(OBJ_DIR)/*/*/* $(subst :, ,$(EXTRA_JARS)) + +# Font file + +FONT_GLYPHS = $(wildcard srcs/special_font/*.svg) + +_build/special_font.ttf: srcs/special_font/build.pe $(FONT_GLYPHS) + fontforge -lang=ff -script $< "$@" $(FONT_GLYPHS) |
