aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBen Beltran <ben@nsovocal.com>2017-05-19 00:32:10 -0500
committerBen Beltran <ben@nsovocal.com>2017-05-19 00:32:10 -0500
commit0a349ded18c79cfab18627e48bbd5ddeb21153d1 (patch)
treea57228f6428ccd5187a75c3aeb72125b60b9b413 /Makefile
parentcd24d1cbf0d0ef907714cbf767ad6199bcaf9bcd (diff)
Add documentation target to make
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index abbfd02..499e1d1 100644
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,18 @@ test: build
lint:
cd Sources && swiftlint
+document: build
+ sourcekitten doc --spm-module $(source_binary_name) > $(build_path)/$(source_binary_name).json
+ jazzy \
+ -s $(build_path)/$(source_binary_name).json \
+ --readme README.md \
+ --clean \
+ --author Lyricli \
+ --author_url https://github.com/lyricli-app \
+ --github_url https://github.com/lyricli-app/lyricli \
+ --module-version 0.0.0 \
+ --module Lyricli \
+
clean:
swift build --clean