-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
36 lines (27 loc) · 970 Bytes
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Usage:
# make - Build everything, except Android
# make linux - Build for Linux/X11
# make windows - Build for Windows Desktop
# make mac - Build for Mac OSX
# make html5 - Build for HTML5
# make android - Build for Android (Requires manual setup beforehand)
GAME_NAME = blobs-of-colour
.PHONY: all linux windows mac html5
all: linux windows mac html5
directory:
mkdir -p build
linux: directory
mkdir -p build/linux
cd game && godot --export "Linux/X11" ../build/linux/$(GAME_NAME).x86_64
windows: directory
mkdir -p build/windows
cd game && godot --export "Windows Desktop" ../build/windows/$(GAME_NAME).exe
mac: directory
mkdir -p build/mac
cd game && godot --export "Mac OSX" ../build/mac/$(GAME_NAME).zip
html5: directory
mkdir -p build/html5
cd game && godot --export "HTML5" ../build/html5/$(GAME_NAME).html
android: directory
mkdir -p build/android
cd game && godot --export-debug "Android" ../build/android/$(GAME_NAME).apk