forked from minetest/minetest
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
76 lines (54 loc) · 1.61 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
.PHONY: all deps repos sdl2 package zmqpp minetester minetest install demo proto clean
MINETESTER_VERSION := 0.0.1
SDL2_CMAKE_FILE := lib/SDL/build/lib/cmake/SDL2/sdl2-config.cmake
ZMQPP_LIB_FILE := lib/zmqpp/build/max-g++/libzmqpp.a
MINETEST_BINARY := bin/minetest
DEBUG_BINARY := bin/minetest_debug
MINETESTER_WHEEL := build/package/wheel/minetester-$(MINETESTER_VERSION)-py3-none-manylinux_2_35_x86_64.whl
default: minetest
linux_deps:
# Install debian dependencies
util/minetester/install_deps.sh
python_build_deps:
# Install python build dependencies
pip install --upgrade pip
pip install -r build_requirements.txt
repos:
# Init all submodules
git submodule update --init --recursive
$(SDL2_CMAKE_FILE):
# compile sdl2
util/minetester/build_sdl2.sh
sdl2: $(SDL2_CMAKE_FILE)
proto:
#create protobuf c++ and python files
util/minetester/compile_proto.sh
$(ZMQPP_LIB_FILE):
#compile zmqpp
util/minetester/build_zmqpp.sh
zmqpp: $(ZMQPP_LIB_FILE)
$(MINETEST_BINARY):
#build minetest binary
util/minetester/build_minetest.sh
minetest: $(MINETEST_BINARY)
$(DEBUG_BINARY):
util/minetester/build_debuggable_minetest.sh
debug: $(DEBUG_BINARY)
$(MINETESTER_WHEEL):
#build minetester python library
util/minetester/build_minetester.sh
minetester: $(MINETESTER_WHEEL)
install:
#install python library
pip install $(MINETESTER_WHEEL) --force-reinstall
demo:
#install run demo script
python -m minetester.scripts.test_loop
ctags:
ctags --extras=+f -R --links=no .
clean:
#clean up repo
util/minetester/clean.sh
clean_minetester:
#clean up minetester, but not minetest
util/minetester/clean_minetester.sh