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