]> git.r.bdr.sh - rbdr/lyricli/blame - Makefile
Use gitlab links in jazzy docs
[rbdr/lyricli] / Makefile
CommitLineData
169297c8
BB
1configuration = debug
2build_path = .build
3
4# These are used to rename the executable to lrc without renaming the package
5source_binary_name = lyricli
6target_binary_name = lrc
7install_path = /usr/local/bin
8source_binary_path = $(build_path)/$(configuration)/$(source_binary_name)
9install_binary_path = $(install_path)/$(target_binary_name)
10
11# Default to release configuration on install
12install: configuration = release
13
14default: build
15
16build:
17 swift build --build-path $(build_path) --configuration $(configuration)
18
19install: build
20 cp $(source_binary_path) $(install_binary_path)
21
22test: build
23 swift test
24
307993a0
BB
25lint:
26 cd Sources && swiftlint
27
0a349ded
BB
28document: build
29 sourcekitten doc --spm-module $(source_binary_name) > $(build_path)/$(source_binary_name).json
30 jazzy \
31 -s $(build_path)/$(source_binary_name).json \
32 --readme README.md \
33 --clean \
34 --author Lyricli \
ffca0db7
BB
35 --author_url https://gitlab.com/lyricli \
36 --github_url https://gitlab.com/lyricli/lyricli \
aaf058f0 37 --module-version 0.4.0 \
0a349ded
BB
38 --module Lyricli \
39
169297c8
BB
40clean:
41 swift build --clean
42
307993a0 43.PHONY: build install test clean lint