Skip to content

Commit

Permalink
Update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
AI-WAIFU committed Jul 15, 2023
1 parent 9283d99 commit b2094ce
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,50 @@ deb_deps:
util/minetester/install_deps.sh

python_build_deps:
# Install python build dependencies
pip install -r build_requirements.txt

repos:
# Init all submodules
git submodule update --init --recursive

$(SDL2_CMAKE_FILE): repos
$(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): repos
$(ZMQPP_LIB_FILE):
#compile zmqpp
util/minetester/build_zmqpp.sh

zmqpp: $(ZMQPP_LIB_FILE)


$(MINETEST_BINARY): repos sdl2 zmqpp proto
$(MINETEST_BINARY):
#build minetest binary
util/minetester/build_minetest.sh

minetest: $(MINETEST_BINARY)

minetester:
$(MINETESTER_WHEEL):
#build minetester python library
util/minetester/build_minetester.sh

minetester: $(MINETESTER_WHEEL)

install:
#install python library
pip install $(MINETESTER_WHEEL)

demo:
#install run demo script
python -m minetester.scripts.test_loop

clean:
#clean up repo
util/minetester/clean.sh

0 comments on commit b2094ce

Please sign in to comment.