diff options
author | metamuffin <metamuffin@disroot.org> | 2024-09-17 21:33:08 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2024-09-17 21:33:08 +0200 |
commit | 976e2fc3e25bfd08c755aa222a45c42a53b0b8e0 (patch) | |
tree | e73b304827d149770a94b533569b08aa35ac4cad /test-client/makefile | |
parent | 666adbf669afc06d87aa28f1a8ca120c5612d3a4 (diff) | |
download | hurrycurry-976e2fc3e25bfd08c755aa222a45c42a53b0b8e0.tar hurrycurry-976e2fc3e25bfd08c755aa222a45c42a53b0b8e0.tar.bz2 hurrycurry-976e2fc3e25bfd08c755aa222a45c42a53b0b8e0.tar.zst |
tc: localization
Diffstat (limited to 'test-client/makefile')
-rw-r--r-- | test-client/makefile | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/test-client/makefile b/test-client/makefile index 2a83f5d0..72a04791 100644 --- a/test-client/makefile +++ b/test-client/makefile @@ -14,9 +14,20 @@ # along with this program. If not, see <https://www.gnu.org/licenses/>. # .PHONY: all clean -all: main.js +all: main.js locales +locales: $(patsubst ../locale/%.ini,locale/%.json,$(wildcard ../locale/*.ini)) clean: rm main.js + rm -rf locale main.js: main.ts $(wildcard *.ts) esbuild $< --bundle --outfile=$@ --target=esnext --format=esm + +LT = ../target/release/localetool + +$(LT): $(shell find ../locale/tools -type f) + { cd ..; cargo build --release --bin localetool; } + +locale/%.json: ../locale/%.ini $(LT) ../locale/en.ini + @mkdir -p locale + $(LT) export-json $< $@ --fallback ../locale/en.ini |