diff options
Diffstat (limited to 'client/makefile')
-rw-r--r-- | client/makefile | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/client/makefile b/client/makefile index 40ee470a..71a4fb38 100644 --- a/client/makefile +++ b/client/makefile @@ -13,9 +13,12 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see <https://www.gnu.org/licenses/>. # -.PHONY: assets clean all -all: assets +.PHONY: assets clean all locales +all: assets locales assets: menu/book/book_01.webp +locales: $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini)) + +LT = ../target/release/localetool clean: rm -f menu/book/book_*.webp @@ -24,3 +27,14 @@ menu/book/book_01.webp: @echo Downloading recipe book... @mkdir -p menu/book @curl -L https://s.metamuffin.org/static/hurrycurry/book.webp.tar.zst | tar -xC menu/book + +$(LT): $(shell find ../locale/tools -type f) + { cd ..; cargo build --release --bin localetool; } + +po/locales.csv: $(LT) + @mkdir -p po + $(LT) export-godot-csv ../locale $@ + +po/%.po: ../locale/%.ini $(LT) + @mkdir -p po + $(LT) export-po $< $@ |