From 9157924da255c0f1dc88d274cf3e70d91e380bd4 Mon Sep 17 00:00:00 2001 From: tpart Date: Wed, 22 Jan 2025 12:55:31 +0100 Subject: Use environment variable in makefile --- client/makefile | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'client/makefile') diff --git a/client/makefile b/client/makefile index 70b2b9fd..144fd0f1 100644 --- a/client/makefile +++ b/client/makefile @@ -14,15 +14,22 @@ # You should have received a copy of the GNU Affero General Public License # along with this program. If not, see . # -.PHONY: assets clean all locales +ifdef GODOT +GODOT := $(GODOT) +else +GODOT := godot +endif + +.PHONY: assets clean all all: .godot/import-finished icons/adaptive-background.png icons/adaptive-foreground.png clean: rm -f menu/book/book_*.webp rm -f icons/adaptive-foreground.png icons/adaptive-background.png + rm .godot/import-finished -.godot/import-finished: $(LOCALES) - if test ! -e $@; then godot --headless --import project.godot; fi +.godot/import-finished: + if test ! -e $@; then $(GODOT) --headless --import project.godot; fi touch $@ icons/adaptive-background.png: -- cgit v1.2.3-70-g09d2