Skip to content

Commit 17f540f

Browse files
author
Mike Richter
committed
Allow building debug or release #18463
1 parent e9005d9 commit 17f540f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ NUMERIC_VERSION=1.4.0
66
VERSION=v$(NUMERIC_VERSION)
77
PROGRAM_NAME=ppios-rename
88

9+
TARGET=Release
10+
#TARGET=Debug
911
BUILD_DIR=build
10-
PROGRAM="$(shell pwd)/$(BUILD_DIR)/Build/Products/Release/$(PROGRAM_NAME)"
12+
PROGRAM="$(shell pwd)/$(BUILD_DIR)/Build/Products/$(TARGET)/$(PROGRAM_NAME)"
1113
README="$(shell pwd)/README.md"
1214
GIT_CMD=git rev-parse --short HEAD
1315
GIT_HASH_CHECK=$(GIT_CMD) &> /dev/null
@@ -23,7 +25,7 @@ WORKSPACE=ppios-rename.xcworkspace
2325
XCODEBUILD_OPTIONS=\
2426
-workspace $(WORKSPACE) \
2527
-scheme ppios-rename \
26-
-configuration Release \
28+
-configuration $(TARGET) \
2729
-derivedDataPath $(BUILD_DIR)
2830

2931
.PHONY: default

0 commit comments

Comments
 (0)