]> git.r.bdr.sh - rbdr/lyricli/commitdiff
Create build folder before documenting
authorBen Beltran <redacted>
Tue, 10 Mar 2020 02:48:25 +0000 (21:48 -0500)
committerBen Beltran <redacted>
Tue, 10 Mar 2020 02:48:25 +0000 (21:48 -0500)
Makefile

index 8428b44460bdc9b1a236e01acf397dfb05da0c07..d2449967d4ae1d0b1e2766e30a58350ec6af638f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,10 @@ install: configuration = release
 
 default: build
 
-build:
+prebuild:
+       mkdir -p $(build_path)
+
+build: prebuild
        swift build --build-path $(build_path) --configuration $(configuration)
 
 install: build
@@ -26,7 +29,7 @@ test: build
 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 \