Skip to content

Commit 8c439cd

Browse files
authored
makefile: Add cli target (apple#1022)
Often times I'll be making a change that only touches the cli and I don't feel like sitting through the potential song and dance of the other components building/installing.
1 parent d6f052d commit 8c439cd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

‎Makefile‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,15 @@ build:
5757
@$(SWIFT) --version
5858
@$(SWIFT) build -c $(BUILD_CONFIGURATION) $(SWIFT_CONFIGURATION)
5959

60+
.PHONY: cli
61+
cli:
62+
@echo Building container CLI...
63+
@$(SWIFT) --version
64+
@$(SWIFT) build -c $(BUILD_CONFIGURATION) $(SWIFT_CONFIGURATION) --product container
65+
@echo Installing container CLI to bin/...
66+
@mkdir -p bin
67+
@install "$(BUILD_BIN_DIR)/container" "bin/container"
68+
6069
.PHONY: container
6170
# Install binaries under project directory
6271
container: build

0 commit comments

Comments
 (0)