diff options
| author | tpart <tpart120@proton.me> | 2025-01-22 12:55:31 +0100 | 
|---|---|---|
| committer | tpart <tpart120@proton.me> | 2025-01-22 12:55:31 +0100 | 
| commit | 9157924da255c0f1dc88d274cf3e70d91e380bd4 (patch) | |
| tree | 1fd53b146900f4fde904102359efde872b30a150 /client/makefile | |
| parent | 89fab05862131b0a1a7eb156623209ae01e7e2b5 (diff) | |
| download | hurrycurry-9157924da255c0f1dc88d274cf3e70d91e380bd4.tar hurrycurry-9157924da255c0f1dc88d274cf3e70d91e380bd4.tar.bz2 hurrycurry-9157924da255c0f1dc88d274cf3e70d91e380bd4.tar.zst  | |
Use environment variable in makefile
Diffstat (limited to 'client/makefile')
| -rw-r--r-- | client/makefile | 13 | 
1 files changed, 10 insertions, 3 deletions
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 <https://www.gnu.org/licenses/>.  # -.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:   |