Skip to content

Commit e9005d9

Browse files
author
Mike Richter
committed
Fix build #18463
1 parent 0580028 commit e9005d9

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

Makefile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,22 +40,23 @@ $(WORKSPACE) Pods Podfile.lock: Podfile
4040
pod install
4141

4242
.PHONY: program
43-
program: Pods build test
43+
program: Pods clean build
44+
45+
# "test" appears to mean "build for testing and test", so the unit tests. Do that first, then make the real thing.
46+
.PHONY: unittest
47+
unittest: Pods
48+
xcodebuild $(XCODEBUILD_OPTIONS) CLASS_DUMP_VERSION=$(NUMERIC_VERSION)$(GIT_HASH) test
4449

4550
.PHONY: build
4651
build:
47-
xcodebuild $(XCODEBUILD_OPTIONS) CLASS_DUMP_VERSION=$(NUMERIC_VERSION)$(GIT_HASH) build
48-
49-
.PHONY: test
50-
test:
51-
xcodebuild $(XCODEBUILD_OPTIONS) test
52+
xcodebuild $(XCODEBUILD_OPTIONS) CLASS_DUMP_VERSION=$(NUMERIC_VERSION)$(GIT_HASH) clean build
5253

5354
.PHONY: check
5455
check:
5556
( cd test/tests ; PPIOS_RENAME=$(PROGRAM) README=$(README) NUMERIC_VERSION=$(NUMERIC_VERSION) ./test-suite.sh )
5657

5758
.PHONY: archive
58-
archive: package-check distclean archive-dir program check dist-package copy-symbols
59+
archive: package-check distclean unittest program check archive-dir dist-package copy-symbols
5960

6061
.PHONY: package-check
6162
package-check:
@@ -69,7 +70,7 @@ archive-dir:
6970
.PHONY: dist-package
7071
dist-package: $(DIST_PACKAGE)
7172

72-
$(DIST_PACKAGE): program
73+
$(DIST_PACKAGE):
7374
mkdir -p $(DIST_DIR)
7475
cp $(PROGRAM) \
7576
README.md \
@@ -89,4 +90,4 @@ clean:
8990

9091
.PHONY: distclean
9192
distclean: clean
92-
$(RM) -r Pods $(DIST_DIR)* $(VERSION)*
93+
$(RM) -r Pods $(DIST_DIR)* v?.?.?-*

0 commit comments

Comments
 (0)