Fix 'make run' and 'make debug'

This commit is contained in:
Gary Talent 2024-10-30 00:40:31 -05:00
parent 1d66bcc3bb
commit e42c3a7dc8

View File

@ -3,15 +3,15 @@ BUILDCORE_PATH=deps/buildcore
VCPKG_PKGS=
include ${BUILDCORE_PATH}/base.mk
ifeq ($(OS),darwin)
PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/${PROJECT_NAME}.app/Contents/MacOS/SlideController
ifeq ($(BC_VAR_OS),darwin)
PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/bin/${PROJECT_NAME}.app/Contents/MacOS/SlideController
else
PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/bin/SlideController
PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/bin/${PROJECT_NAME}
endif
.PHONY: run
run:
run: build
${ENV_RUN} ${PROJECT_EXECUTABLE}
.PHONY: debug
debug:
debug: build
${DEBUGGER} ${PROJECT_EXECUTABLE}