-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
46 lines (38 loc) · 902 Bytes
/
Makefile.am
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
SWIFT = swift
SWIFTLINT = swiftlint
# Build all artifacts
.PHONY: all
all:
$(SWIFT) build -c release $(SWIFTBBUILDFLAGS)
# Clean build results and caches
.PHONY: clean
clean:
$(RM) -r .build
# Install articacts
.PHONY: install
install: all
$(MKDIR_P) "$(libexecdir)"
$(MKDIR_P) "$(mandir)/man8"
$(INSTALL_PROGRAM) ".build/release/proxy_helper" "$(libexecdir)/proxy_helper"
$(INSTALL_DATA) "ManPage/proxy_helper.8" "$(mandir)/man8/proxy_helper.8"
# Uninstall artifacts
.PHONY: uninstall
uninstall:
$(RM) "$(libexecdir)/proxy_helper"
$(RM) "$(mandir)/man8/proxy_helper.8"
# Run tests
.PHONY: check
check:
$(SWIFT) test
# Run linter
.PHONY: lint
lint:
$(SWIFTLINT) $(SWIFTLINTFLAGS)
# Generate Xcode Project
.PHONY: generate-xcodeproj
generate-xcodeproj:
$(SWIFT) package generate-xcodeproj
# Clean Xcode Project
.PHONY: clean-xcodeproj
clean-xcodeproj:
$(RM) -r ProxyHelper.xcodeproj