Created
July 1, 2020 19:20
-
-
Save dirtyhenry/a5fa7d66401950448a1b058b199caca5 to your computer and use it in GitHub Desktop.
A Makefile for Swift packages
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
brew "swiftlint" | |
brew "swiftformat" |
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
prefix ?= /usr/local | |
bindir = $(prefix)/bin | |
projetName = git-review | |
install: | |
brew bundle | |
swift package update | |
build: | |
swift build | |
lint: | |
swiftformat . | |
swiftlint | |
run-test: | |
.build/debug/$(projetName) | |
deploy: | |
swift build -c release --disable-sandbox | |
install ".build/release/$(projetName)" "$(bindir)" | |
clean: | |
rm -rf .build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment