]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Makefile
Create build folder before documenting
[rbdr/lyricli] / Makefile
index d993480f3ef8e5e58ef591af05fbc452a36c1ebb..d2449967d4ae1d0b1e2766e30a58350ec6af638f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,10 @@ install: configuration = release
 
 default: build
 
 
 default: build
 
-build:
+prebuild:
+       mkdir -p $(build_path)
+
+build: prebuild
        swift build --build-path $(build_path) --configuration $(configuration)
 
 install: build
        swift build --build-path $(build_path) --configuration $(configuration)
 
 install: build
@@ -26,7 +29,7 @@ test: build
 lint:
        cd Sources && swiftlint
 
 lint:
        cd Sources && swiftlint
 
-document: build
+document: prebuild
        sourcekitten doc --spm-module $(source_binary_name) > $(build_path)/$(source_binary_name).json
        jazzy \
                -s $(build_path)/$(source_binary_name).json \
        sourcekitten doc --spm-module $(source_binary_name) > $(build_path)/$(source_binary_name).json
        jazzy \
                -s $(build_path)/$(source_binary_name).json \
@@ -35,7 +38,7 @@ document: build
                --author Lyricli \
                --author_url https://gitlab.com/lyricli \
                --github_url https://gitlab.com/lyricli/lyricli \
                --author Lyricli \
                --author_url https://gitlab.com/lyricli \
                --github_url https://gitlab.com/lyricli/lyricli \
-               --module-version 0.4.0 \
+               --module-version 1.0.0 \
                --module Lyricli \
 
 clean:
                --module Lyricli \
 
 clean: