-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathMakefile
More file actions
21 lines (15 loc) · 564 Bytes
/
Makefile
File metadata and controls
21 lines (15 loc) · 564 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
prefix ?= /usr/local
bindir = $(prefix)/bin
build:
# disabling the sandbox is necessary for installation with homebrew
swift build -c release --disable-sandbox
install: build
install ".build/release/swift-outdated" "$(bindir)"
uninstall:
rm -rf "$(bindir)/swift-outdated"
clean:
rm -rf .build
bump-homebrew:
VERSION=$$(grep -Eo 'version: \"[0-9.]+\"' ./Sources/SwiftOutdated/SwiftOutdated.swift | sed 's/version: //' | tr -d \"); \
brew bump-formula-pr --strict swift-outdated --tag=$$VERSION --version=$$VERSION
.PHONY: uninstall clean bump-homebrew