-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
82 lines (57 loc) · 1.82 KB
/
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
# **************************************************************************** #
# General Make configuration
# This suppresses make's command echoing. This suppression produces a cleaner output.
# If you need to see the full commands being issued by make, comment this out.
MAKEFLAGS += -s
# **************************************************************************** #
# Targets
pull:
git reset --hard
git pull
web:
$(GODOT) --export "HTML5"
webdeploy: web
cp build/web/* /var/www/html/magnusdei.io/skein
win:
$(GODOT) --export "Windows Desktop"
# **************************************************************************** #
BUTLER := butler
ifeq ($(OS),Windows_NT)
BUTLER := $(BUTLER).exe
endif
itch:
$(BUTLER) push build/web daelon/skein:html5
# **************************************************************************** #
# download godot binary and export templates for linux
GDVERSION := 3.5.1
GDBUILD := stable
URL := https://downloads.tuxfamily.org/godotengine/$(GDVERSION)/
ifneq ($(GDBUILD),stable)
URL := $(URL)$(GDBUILD)/
endif
GDBINARY := Godot_v$(GDVERSION)-$(GDBUILD)_linux_headless.64
TEMPLATES := Godot_v$(GDVERSION)-$(GDBUILD)_export_templates.tpz
download:
wget $(URL)$(GDBINARY).zip
unzip $(GDBINARY).zip
mkdir -p ~/godot
mv $(GDBINARY) ~/godot
rm $(GDBINARY).zip
wget $(URL)$(TEMPLATES)
unzip $(TEMPLATES)
mkdir -p ~/.local/share/godot/templates
mv templates/ ~/.local/share/godot/templates/$(GDVERSION).$(GDBUILD)/
rm $(TEMPLATES)
# **************************************************************************** #
# Variables
WSLENV ?= notwsl
GD = ""
ifndef WSLENV
GD := Godot_v3.5.1-stable_win64.exe
else
GD := ~/godot/$(GDBINARY)
endif
GDARGS := --no-window --quiet
GODOT = $(GD) $(GDARGS)
# **************************************************************************** #
include venv.mk