-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
47 lines (37 loc) · 1.35 KB
/
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
38
39
40
41
42
43
44
45
46
47
PRODUCT_NAME := VolleyballScoreApp
WORKSPACE_NAME := ${PRODUCT_NAME}.xcworkspace
.DEFAULT_GOAL := generate-xcworkspace
.PHONY: setup
setup: ## install bundler and bundle install, pod install
$(MAKE) gem-install
$(MAKE) bundle-install
$(MAKE) generate-xcworkspace
.PHONY: generate-xcworkspace
generate-xcworkspace: ## generate xcworkspace
$(MAKE) pod-install
open ./${WORKSPACE_NAME}
.PHONY: gem-install
gem-install: ## gem install
$(info $(SEPARATOR))
gem install bundler
.PHONY: bundle-install
bundle-install: ## bundle install
$(info $(SEPARATOR))
bundle install -j4
.PHONY: pod-install
pod-install: ## bundle exec pod install
$(info $(SEPARATOR))
bundle exec pod install
.PHONY: enable-faster-builds
enable-faster-builds: ## Enable faster builds for Swift projects
defaults write com.apple.dt.XCBuild EnableSwiftBuildSystemIntegration 1
.PHONY: Xcode-build
Xcode-build: ## Xcode build command for CI
set -o pipefail && xcodebuild -sdk iphonesimulator -configuration Debug -workspace ${WORKSPACE_NAME} -scheme ${PRODUCT_NAME} build | bundle exec xcpretty
.PHONY: Xcode-clean
Xcode-clean: ## delete DerivedData
rm -rf ~/Library/Developer/Xcode/DerivedData/
.PHONY: help
help: ## print this message
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
SEPARATOR=********************