Skip to content

Instantly share code, notes, and snippets.

@dirtyhenry
Created July 1, 2020 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dirtyhenry/a5fa7d66401950448a1b058b199caca5 to your computer and use it in GitHub Desktop.
Save dirtyhenry/a5fa7d66401950448a1b058b199caca5 to your computer and use it in GitHub Desktop.
A Makefile for Swift packages
brew "swiftlint"
brew "swiftformat"
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