]> git.r.bdr.sh - rbdr/lyricli/blobdiff - Makefile
Create build folder before documenting
[rbdr/lyricli] / Makefile
index 8428b44460bdc9b1a236e01acf397dfb05da0c07..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 \