From: Ben Beltran Date: Tue, 10 Mar 2020 02:48:25 +0000 (-0500) Subject: Create build folder before documenting X-Git-Tag: 1.0.0^2^2~2 X-Git-Url: https://git.r.bdr.sh/rbdr/lyricli/commitdiff_plain/97f47198a0dd96c571ec1086e7f8c68963d263d0?ds=sidebyside;hp=a12f29158ced867c200ce8ea596fa46b17c8c18a Create build folder before documenting --- diff --git a/Makefile b/Makefile index 8428b44..d244996 100644 --- 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 \