[nostalgia] Make run commands not require install

This commit is contained in:
Gary Talent 2023-06-24 12:40:49 -05:00
parent 56f2533754
commit 341217b78e

View File

@ -1,13 +1,12 @@
PROJECT_NAME=nostalgia
BUILDCORE_PATH=deps/buildcore
VCPKG_PKGS=sdl2 jsoncpp
include ${BUILDCORE_PATH}/base.mk
ifeq ($(OS),darwin)
NOSTALGIA_STUDIO=./dist/${CURRENT_BUILD}/nostalgia-studio.app/Contents/MacOS/nostalgia-studio
NOSTALGIA_STUDIO=./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/studio/nostalgia-studio.app/Contents/MacOS/nostalgia-studio
MGBA=/Applications/mGBA.app/Contents/MacOS/mGBA
else
NOSTALGIA_STUDIO=./dist/${CURRENT_BUILD}/bin/nostalgia-studio
NOSTALGIA_STUDIO=./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/studio/nostalgia-studio
MGBA=mgba-qt
endif
@ -16,19 +15,19 @@ pkg-gba: install
${ENV_RUN} ./scripts/pkg-gba sample_project
.PHONY: run
run: install
./dist/${CURRENT_BUILD}/bin/nostalgia sample_project
run: build
./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/player/nostalgia sample_project
.PHONY: run-studio
run-studio: install
run-studio: build
${NOSTALGIA_STUDIO}
.PHONY: gba-run
gba-run: pkg-gba
${MGBA} nostalgia.gba
.PHONY: debug
debug: install
${DEBUGGER} ./dist/${CURRENT_BUILD}/bin/nostalgia sample_project
debug: build
${DEBUGGER} ./build/${HOST}/${CURRENT_BUILD}/src/nostalgia/player/nostalgia sample_project
.PHONY: debug-studio
debug-studio: install
debug-studio: build
${DEBUGGER} ${NOSTALGIA_STUDIO}
.PHONY: configure-gba