Skip to content

Commit 245e684

Browse files
committed
add make run
1 parent 5084d84 commit 245e684

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

Makefile

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ SHELL = /usr/bin/env bash
4343
4444
# path to decomp, defaults to the submodule's path
4545
STGZ_DECOMP_DIR ?= resources/decomp
46+
STGZ_EMULATOR ?=
4647
4748
# game region, only eur is supported atm
4849
REGION := eur
@@ -228,6 +229,12 @@ overlay: $(BIN)
228229
$(V)$(PYTHON) tools/gen_libs.py -m libgz -e $(ELF)
229230
$(call print_no_args,Success!)
230231
232+
run: all
233+
ifeq ($(STGZ_EMULATOR),)
234+
$(error "Emulator path not set.")
235+
endif
236+
$(STGZ_EMULATOR) $(OUT_ROM)
237+
231238
setup: extract
232239
233240
venv:
@@ -239,7 +246,7 @@ venv:
239246
$(V)$(PYTHON) -m pip install -U -r tools/requirements.txt
240247
$(call print_no_args,Success!)
241248
242-
.PHONY: all build clean distclean extract hooks init libs overlay setup venv
249+
.PHONY: all build clean distclean extract hooks init libs overlay run setup venv
243250
244251
### misc project recipes ###
245252

0 commit comments

Comments
 (0)