From fd15bf4eb3f3bf351ea0f5ae294beadd522cc07b Mon Sep 17 00:00:00 2001 From: Eberhard Beilharz Date: Thu, 27 May 2021 18:39:01 +0200 Subject: [PATCH] fix(linux): Fix Makefile and instructions for building Building km-config now requires an additional step so that generates `lang_tags_map.py`. During a package build this happens in `reconf.sh`. This change updates the documentation, and also adds this build step to the Makefile, so that the file gets generated when building from the command line. Closes #5074. --- linux/keyman-config/Makefile | 5 ++++- linux/keyman-config/README.md | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/linux/keyman-config/Makefile b/linux/keyman-config/Makefile index 72f30a1bbf..4d079baa1a 100644 --- a/linux/keyman-config/Makefile +++ b/linux/keyman-config/Makefile @@ -1,8 +1,11 @@ #!/usr/bin/make -default: clean version man +default: clean version man langtags python3 setup.py build +langtags: + cd buildtools && python3 ./build-langtags.py + install: # run as sudo pip3 install qrcode sentry-sdk python3 setup.py install diff --git a/linux/keyman-config/README.md b/linux/keyman-config/README.md index 9719d3d8a5..b951ae359b 100644 --- a/linux/keyman-config/README.md +++ b/linux/keyman-config/README.md @@ -35,6 +35,12 @@ sudo cp com.keyman.gschema.xml /usr/share/glib-2.0/schemas sudo glib-compile-schemas /usr/share/glib-2.0/schemas ``` +### Standards data file + +Running `km-config` requires a language tag mapping file +`keyman_config/standards/lang_tags_map.py`. This file gets generated during a package +build, and also when running `make`. + ### Installing manually from the repo `make && sudo make install` will install locally to `/usr/local`