forked from peripheryapp/periphery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 654 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
RELEASE_BUILD_FLAGS=-c release --disable-sandbox
RELEASE_EXECUTABLE=$(shell swift build $(RELEASE_BUILD_FLAGS) --show-bin-path)/periphery
.PHONY: all $(MAKECMDGOALS)
all: build
build:
@swift build
build_release:
@swift build $(RELEASE_BUILD_FLAGS)
proj: build
@rm -rf Periphery.xcodeproj
@swift package generate-xcodeproj
@cp Tests/Configs/RetentionFixtures.xcscheme Periphery.xcodeproj/xcshareddata/xcschemes/
@open Periphery.xcodeproj
lint:
@swiftlint lint --quiet
test:
@set -o pipefail && swift test 2>&1 | bundle exec xcpretty -tc
install: build_release
install -d "$(PREFIX)/bin/"
install "$(RELEASE_EXECUTABLE)" "$(PREFIX)/bin/"