forked from steemit/swift-steem
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
42 lines (35 loc) · 1.12 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
SHELL := /bin/bash
SRC_FILES := $(shell find Sources -name '*.swift')
Steem.xcodeproj:
swift package generate-xcodeproj
docs: Steem.xcodeproj $(SRC_FILES) README.md
@command -v jazzy >/dev/null || (echo "doc generator missing, run: [sudo] gem install jazzy"; exit 1)
jazzy --min-acl public \
--module Steem \
--hide-documentation-coverage \
--undocumented-text "" \
--docset-icon ~/Desktop/steem.svg \
-x -scheme,Steem-Package,-target,Steem \
-g https://github.com/steemit/swift-steem \
-a "Steemit Inc." \
-u https://steem.com \
&& touch docs
.PHONY: format
format:
@command -v swiftformat >/dev/null || (echo "formatter missing, run: brew install swiftformat"; exit 1)
swiftformat \
--self insert \
--comments ignore \
--disable redundantReturn \
Package.swift Tests/ Sources/
.gh-pages:
git clone `git config --get remote.origin.url` -b gh-pages .gh-pages
.PHONY: update-docs
update-docs: .gh-pages docs
cp -r docs/* .gh-pages/
cd .gh-pages && git add . && git commit -m "Update docs [ci skip]" && git push
.PHONY: clean
clean:
rm -rf Steem.xcodeproj
rm -rf .gh-pages/ docs/
rm -rf .build/ build/