simplify autocorrect makefile
commita378b130c390423c22999db0841ad1fcf10b4e5c
authorChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Mon, 7 Feb 2022 16:12:49 +0000 (7 17:12 +0100)
committerChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Thu, 10 Feb 2022 10:34:44 +0000 (10 11:34 +0100)
treecc5feadb34bf6ac69d84c66dad5466f5290e7102
parentbda200a5e9c4592bd61b7924fa171ec3265bfd24
simplify autocorrect makefile

The multiple indirections/complex nested constructs don't really provide
any benefit here, they certainly don't make the makefile easier to read.

Also remove the empty mimetype files and just touch them instead of
copying them.

The xml and mimetype files are now intermediates and are removed by make
once the .dat is built. (if that's not desired, they can be flagged as
.SECONDARY)

Further simplification is possible when using the same language code
for both the intermediate directory as well as the source directory
layout and the .dat files

Change-Id: I0e0c28abcad2b404a88d1f32b9b9cdb53b4125c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129628
Tested-by: Jenkins
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
50 files changed:
extras/CustomTarget_autocorr.mk
extras/source/autocorr/lang/af-ZA/mimetype [deleted file]
extras/source/autocorr/lang/bg/mimetype [deleted file]
extras/source/autocorr/lang/ca/mimetype [deleted file]
extras/source/autocorr/lang/cs/mimetype [deleted file]
extras/source/autocorr/lang/da/mimetype [deleted file]
extras/source/autocorr/lang/de/mimetype [deleted file]
extras/source/autocorr/lang/dsb/mimetype [deleted file]
extras/source/autocorr/lang/el/mimetype [deleted file]
extras/source/autocorr/lang/en-AU/mimetype [deleted file]
extras/source/autocorr/lang/en-GB/mimetype [deleted file]
extras/source/autocorr/lang/en-US/mimetype [deleted file]
extras/source/autocorr/lang/en-ZA/mimetype [deleted file]
extras/source/autocorr/lang/es/mimetype [deleted file]
extras/source/autocorr/lang/fa/mimetype [deleted file]
extras/source/autocorr/lang/fi/mimetype [deleted file]
extras/source/autocorr/lang/fr/mimetype [deleted file]
extras/source/autocorr/lang/ga-IE/mimetype [deleted file]
extras/source/autocorr/lang/hr/mimetype [deleted file]
extras/source/autocorr/lang/hsb/mimetype [deleted file]
extras/source/autocorr/lang/hu/mimetype [deleted file]
extras/source/autocorr/lang/is/mimetype [deleted file]
extras/source/autocorr/lang/it/mimetype [deleted file]
extras/source/autocorr/lang/ja/mimetype [deleted file]
extras/source/autocorr/lang/ko/mimetype [deleted file]
extras/source/autocorr/lang/lb-LU/mimetype [deleted file]
extras/source/autocorr/lang/lt/mimetype [deleted file]
extras/source/autocorr/lang/mn/mimetype [deleted file]
extras/source/autocorr/lang/nl-BE/mimetype [deleted file]
extras/source/autocorr/lang/nl/mimetype [deleted file]
extras/source/autocorr/lang/pl/mimetype [deleted file]
extras/source/autocorr/lang/pt-BR/mimetype [deleted file]
extras/source/autocorr/lang/pt-PT/mimetype [deleted file]
extras/source/autocorr/lang/pt/mimetype [deleted file]
extras/source/autocorr/lang/ro/mimetype [deleted file]
extras/source/autocorr/lang/ru/mimetype [deleted file]
extras/source/autocorr/lang/sk/mimetype [deleted file]
extras/source/autocorr/lang/sl/mimetype [deleted file]
extras/source/autocorr/lang/sr-CS/mimetype [deleted file]
extras/source/autocorr/lang/sr-Latn-CS/mimetype [deleted file]
extras/source/autocorr/lang/sr-Latn-ME/mimetype [deleted file]
extras/source/autocorr/lang/sr-Latn-RS/mimetype [deleted file]
extras/source/autocorr/lang/sr-ME/mimetype [deleted file]
extras/source/autocorr/lang/sr-RS/mimetype [deleted file]
extras/source/autocorr/lang/sv/mimetype [deleted file]
extras/source/autocorr/lang/tr/mimetype [deleted file]
extras/source/autocorr/lang/vi/mimetype [deleted file]
extras/source/autocorr/lang/vro/mimetype [deleted file]
extras/source/autocorr/lang/zh-CN/mimetype [deleted file]
extras/source/autocorr/lang/zh-TW/mimetype [deleted file]