]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Makefile
Use before_deploy to generate docs
[rbdr/lyricli] / Makefile
index 34eec3ac500784510e6f0cf64c0d4c0b2b801ea2..499e1d14a89866613a282fa387527d7d3e76621e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,22 @@ install: build
 test: build
        swift test
 
 test: build
        swift test
 
+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
 
 clean:
        swift build --clean
 
-.PHONY: build test clean
+.PHONY: build install test clean lint