-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (30 loc) · 866 Bytes
/
Makefile
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
BUILD_DIR = ./build
APP_NAME = Pulse
ARCHIVE_PATH = $(BUILD_DIR)/$(APP_NAME).xcarchive
CONFIGURATION = Release
BUILD_LOG = ./build.log
.PHONY: build
build: clean
xcodebuild build analyze archive \
-destination "generic/platform=macOS" \
-scheme $(APP_NAME) \
-configuration $(CONFIGURATION) \
-archivePath $(ARCHIVE_PATH) \
| tee $(BUILD_LOG)
.PHONY: swiftlint-analyze
swiftlint-analyze:
$(MAKE) build CONFIGURATION=Debug
swiftlint analyze --strict --compiler-log-path $(BUILD_LOG)
.PHONY: clean
clean:
rm -rf $(BUILD_DIR)
# TODO: notary
.PHONY: schema
schema:
curl -sSfLo Pulse/Github/schema.graphqls https://docs.github.com/public/fpt/schema.docs.graphql
.PHONY: clean-generated
clean-generated:
rm -rf Pulse/Github/{Github.graphql.swift,Operations,Schema}
.PHONY: generate
generate: clean-generated
./apollo-ios-cli generate