26 lines
		
	
	
	
		
			575 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
		
		
			
		
	
	
			26 lines
		
	
	
	
		
			575 B
		
	
	
	
		
			Makefile
		
	
	
	
	
	
| 
								 | 
							
								godot_project := "./project.godot"
							 | 
						||
| 
								 | 
							
								godot_url := "https://downloads.tuxfamily.org/godotengine/4.0/alpha15/Godot_v4.0-alpha15_linux.x86_64.zip"
							 | 
						||
| 
								 | 
							
								godot_exe := "Godot_v4.0-alpha15_linux.x86_64"
							 | 
						||
| 
								 | 
							
								godot_exe_dir := "~/bin"
							 | 
						||
| 
								 | 
							
								godot_path := godot_exe_dir + "/" + godot_exe
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								setup:
							 | 
						||
| 
								 | 
							
									#!/usr/bin/env bash
							 | 
						||
| 
								 | 
							
									set -euo pipefail
							 | 
						||
| 
								 | 
							
									if [ ! -e {{godot_path}} ]; then
							 | 
						||
| 
								 | 
							
										curl {{godot_url}} -O
							 | 
						||
| 
								 | 
							
										unzip Godot*.zip
							 | 
						||
| 
								 | 
							
										mkdir -p {{godot_exe_dir}}
							 | 
						||
| 
								 | 
							
										mv {{godot_exe}} {{godot_exe_dir}}
							 | 
						||
| 
								 | 
							
										rm Godot*.zip
							 | 
						||
| 
								 | 
							
									fi
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#run:
							 | 
						||
| 
								 | 
							
								#	nixGL zig build run
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								godot: setup
							 | 
						||
| 
								 | 
							
									{{godot_exe}}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								edit: setup
							 | 
						||
| 
								 | 
							
									{{godot_exe}} {{godot_project}}
							 |