-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
32 lines (23 loc) · 949 Bytes
/
makefile
File metadata and controls
32 lines (23 loc) · 949 Bytes
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
# ----- Tools -----
PYTHON := python
# ----- Project paths (absolute) -----
PROJECT_DIR := $(abspath .)
BUILD_SCRIPT := $(PROJECT_DIR)/build.py
# ----- SRB2 paths (absolute) -----
-include paths.mk
BUILD_DIR := $(PROJECT_DIR)/_build
# ----- Run python and capture absolute build filename -----
BUILD := $(shell $(PYTHON) "$(BUILD_SCRIPT)")
PTO_BUILD := $(shell $(PYTHON) "$(BUILD_SCRIPT)" -pto)
.PHONY: build run dual clean
build:
@echo Build output: $(BUILD)
pto:
@echo Build output: $(PTO_BUILD)
run: build
cd "$(SRB2_DIR)" && "$(SRB2_EXE)" -file "$(BUILD)" -windowed -console -server -gametype 8
dual: build
cmd /c "cd /d $(SRB2_DIR) && start "" $(SRB2_EXE) -file "$(BUILD)" -windowed -console -server -gametype 8"
cmd /c "cd /d $(SRB2_DIR) && start "" $(SRB2_EXE) -file "$(BUILD)" -windowed -console -connect localhost"
test: build
cd "$(SRB2_DIR)" && "$(SRB2_EXE)" -file "$(BUILD)" -windowed -console -server -gametype 8 -warp Z1