From 559e71d57b4d0c79868ed666b92c2ccb384d470e Mon Sep 17 00:00:00 2001 From: tpart Date: Thu, 16 Jan 2025 20:16:23 +0100 Subject: update client makefile to new translation system --- book/book-repo | 1 + client/makefile | 20 ++------------------ 2 files changed, 3 insertions(+), 18 deletions(-) create mode 160000 book/book-repo diff --git a/book/book-repo b/book/book-repo new file mode 160000 index 00000000..830ea1c0 --- /dev/null +++ b/book/book-repo @@ -0,0 +1 @@ +Subproject commit 830ea1c06a116e999f5a00a84574715aa5cd1bfc diff --git a/client/makefile b/client/makefile index c1de78c2..70b2b9fd 100644 --- a/client/makefile +++ b/client/makefile @@ -1,5 +1,6 @@ # Hurry Curry! - a game about cooking # Copyright 2024 metamuffin +# Copyright 2024 tpart # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as published by @@ -13,14 +14,8 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # - -LOCALES = $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini)) - .PHONY: assets clean all locales -all: .godot/import-finished locales icons/adaptive-background.png icons/adaptive-foreground.png -locales: $(LOCALES) - -LT = ../target/release/localetool +all: .godot/import-finished icons/adaptive-background.png icons/adaptive-foreground.png clean: rm -f menu/book/book_*.webp @@ -30,17 +25,6 @@ clean: if test ! -e $@; then godot --headless --import project.godot; fi touch $@ -$(LT): $(shell find ../locale/tools -type f) - { cd ..; cargo $(CARGOFLAGS) build --release --bin localetool; } - -po/locales.csv: $(LT) - @mkdir -p po - $(LT) export-godot-csv ../locale $@ - -po/%.po: $(LT) ../locale/%.ini ../book/locale/%.ini ../locale/en.ini ../book/locale/en.ini - @mkdir -p po - $(LT) export-po $@ $(wordlist 2,99,$(^)) - icons/adaptive-background.png: ffmpeg -f lavfi -i "color=color=#E28142,scale=432x432" -frames:v 1 -y $@ icons/adaptive-foreground.png: icons/main.png -- cgit v1.2.3-70-g09d2