From 21a9b4087b6612383ee4beb16c2576a4eeb6b38f Mon Sep 17 00:00:00 2001 From: metamuffin Date: Sun, 13 Oct 2024 20:48:25 +0200 Subject: integrate book into build system --- client/makefile | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'client') diff --git a/client/makefile b/client/makefile index bfcbbff5..2c13b6c4 100644 --- a/client/makefile +++ b/client/makefile @@ -13,10 +13,12 @@ # 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 assets locales icons/adaptive-background.png icons/adaptive-foreground.png -assets: menu/book/book_01.webp -locales: $(patsubst ../locale/%.ini,po/%.po,$(wildcard ../locale/*.ini)) +all: .godot/import-finished locales icons/adaptive-background.png icons/adaptive-foreground.png +locales: $(LOCALES) LT = ../target/release/localetool @@ -24,15 +26,10 @@ clean: rm -f menu/book/book_*.webp rm -f icons/adaptive-foreground.png icons/adaptive-background.png -.godot/import-finished: assets locales +.godot/import-finished: $(LOCALES) godot --headless --import project.godot touch $@ -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 $(CARGOFLAGS) build --release --bin localetool; } -- cgit v1.2.3-70-g09d2