-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathMakefile
32 lines (26 loc) · 854 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
bootstrap:
gem install bundler
bundle install
bundle exec pod install
install: bundle-install pod-install
bundle-install:
bundle install --without development --deployment --jobs=3 --retry=3
pod-install:
bundle exec pod install
bump:
ifeq (,$(strip $(version)))
# Usage: make bump version=<number>
else
ruby -pi -e "gsub(/\d+\.\d+\.\d+/i, \""$(version)"\")" ICInputAccessory.podspec
ruby -pi -e "gsub(/:\s\d+\.\d+\.\d+/i, \": "$(version)"\")" .jazzy.yml
xcrun agvtool new-marketing-version $(version)
make -B docs
endif
carthage:
set -o pipefail && carthage build --no-skip-current --verbose | bundle exec xcpretty
docs:
bundle exec jazzy --config .jazzy.yml
for file in "html" "css" "js" "json"; do \
echo "Trimming whitespace in *."$$file ; \
find docs -name "*."$$file -exec sed -E -i "" -e "s/[[:blank:]]*$$//" {} \; ; \
done