-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
making build/release better splitting the sort into two different commands
- Loading branch information
Showing
21 changed files
with
429 additions
and
413 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,42 @@ | ||
SWIFTC_FLAGS = -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.12" | ||
CONFIGURATION = release | ||
TOOL_NAME = xcoder | ||
VERSION = 0.3.0 | ||
|
||
REPO = https://github.com/g-Off/$(TOOL_NAME) | ||
RELEASE_TAR = $(REPO)/archive/$(VERSION).tar.gz | ||
SHA = $(shell curl -L -s $(RELEASE_TAR) | shasum -a 256 | sed 's/ .*//') | ||
|
||
all: build | ||
PREFIX = /usr/local | ||
INSTALL_PATH = $(PREFIX)/bin/$(TOOL_NAME) | ||
BUILD_PATH = $(shell swift build --show-bin-path -c $(CONFIGURATION))/$(TOOL_NAME) | ||
|
||
SWIFTC_FLAGS = -Xswiftc "-target" -Xswiftc "x86_64-apple-macosx10.12" | ||
CONFIGURATION = debug | ||
|
||
debug: CONFIGURATION = debug | ||
debug: generate_version | ||
debug: build | ||
|
||
generate_version: | ||
@sed 's/__VERSION__/$(VERSION)/g' Version.swift.template > Sources/xcoder/Version.swift | ||
|
||
release_sha: | ||
@echo $(SHA) | ||
|
||
build: | ||
swift build --configuration $(CONFIGURATION) $(SWIFTC_FLAGS) | ||
|
||
release: CONFIGURATION = release | ||
release: | ||
swift build --configuration $(CONFIGURATION) $(SWIFTC_FLAGS) | ||
install: CONFIGURATION = release | ||
install: SWIFTC_FLAGS += --static-swift-stdlib --disable-sandbox | ||
install: clean build | ||
mkdir -p $(PREFIX)/bin | ||
cp -f $(BUILD_PATH) $(INSTALL_PATH) | ||
|
||
test: | ||
swift test $(SWIFTC_FLAGS) | ||
|
||
xcode: generate_version | ||
xcode: | ||
swift package generate-xcodeproj --xcconfig-overrides=overrides.xcconfig | ||
swift package generate-xcodeproj --xcconfig-overrides=Overrides.xcconfig | ||
xed . | ||
|
||
clean: | ||
swift package clean | ||
swift package clean |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Bullwinkle | ||
# xcoder | ||
|
||
A simple command line tool for sorting and syncing an Xcode project file. | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.