Update main Makefile for buildcore changes

This commit is contained in:
Gary Talent 2023-08-25 00:15:57 -05:00
parent 6054b03129
commit 986c76a476

View File

@ -1,12 +1,12 @@
BC_PROJECT_NAME=CppProject BC_VAR_PROJECT_NAME=CppProject
BC_VCPKG_PKGS= BC_VAR_VCPKG_PKGS=
BUILDCORE_PATH=deps/buildcore BUILDCORE_PATH=deps/buildcore
include ${BUILDCORE_PATH}/base.mk include ${BUILDCORE_PATH}/base.mk
ifeq ($(BC_OS),darwin) ifeq ($(BC_VAR_OS),darwin)
PROJECT_EXECUTABLE=./build/${BC_CURRENT_BUILD}/${BC_PROJECT_NAME}.app/Contents/MacOS/${BC_PROJECT_NAME} PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/${BC_VAR_PROJECT_NAME}.app/Contents/MacOS/${BC_VAR_PROJECT_NAME}
else else
PROJECT_EXECUTABLE=./build/${BC_CURRENT_BUILD}/bin/${BC_PROJECT_NAME} PROJECT_EXECUTABLE=./build/${BC_VAR_CURRENT_BUILD}/bin/${BC_VAR_PROJECT_NAME}
endif endif
.PHONY: run .PHONY: run
@ -14,4 +14,4 @@ run: build
${BC_ENVRUN} ${PROJECT_EXECUTABLE} ${BC_ENVRUN} ${PROJECT_EXECUTABLE}
.PHONY: debug .PHONY: debug
debug: build debug: build
${BC_ENVRUN} ${BC_DEBUGGER} ${PROJECT_EXECUTABLE} ${BC_DEBUGGER} ${PROJECT_EXECUTABLE}