forked from groue/GRDBCombine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (32 loc) · 971 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
GIT := $(shell command -v git)
JAZZY := $(shell command -v jazzy)
SOURCEKITTEN := $(shell command -v sourcekitten)
SWIFT := $(shell command -v xcrun swift)
doc:
ifdef JAZZY
ifdef SOURCEKITTEN
$(SWIFT) build
$(SOURCEKITTEN) doc --spm-module GRDBCombine > Documentation/GRDBCombine.json
$(JAZZY) \
--clean \
--sourcekitten-sourcefile Documentation/GRDBCombine.json \
--author 'Gwendal Roué' \
--author_url https://github.com/groue \
--github_url https://github.com/groue/GRDBCombine \
--github-file-prefix https://github.com/groue/GRDBCombine/tree/v0.7.0 \
--module-version 0.7 \
--module GRDBCombine \
--root-url https://groue.github.io/GRDBCombine/docs/0.7/ \
--output Documentation/0.7
else
@echo SourceKitten must be installed for doc: brew install sourcekitten
@exit 1
endif
else
@echo Jazzy must be installed for doc: gem install jazzy
@exit 1
endif
distclean:
$(GIT) reset --hard
$(GIT) clean -dffx .
.PHONY: distclean doc