mirror of
https://github.com/apple/container.git
synced 2026-08-24 10:05:43 -05:00
makefile: Add cli target (#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.
This commit is contained in:
@@ -57,6 +57,15 @@ build:
|
||||
@$(SWIFT) --version
|
||||
@$(SWIFT) build -c $(BUILD_CONFIGURATION) $(SWIFT_CONFIGURATION)
|
||||
|
||||
.PHONY: cli
|
||||
cli:
|
||||
@echo Building container CLI...
|
||||
@$(SWIFT) --version
|
||||
@$(SWIFT) build -c $(BUILD_CONFIGURATION) $(SWIFT_CONFIGURATION) --product container
|
||||
@echo Installing container CLI to bin/...
|
||||
@mkdir -p bin
|
||||
@install "$(BUILD_BIN_DIR)/container" "bin/container"
|
||||
|
||||
.PHONY: container
|
||||
# Install binaries under project directory
|
||||
container: build
|
||||
|
||||
Reference in New Issue
Block a user