Improved the "generate-doc-setup" target in the Makefile file.
This commit is contained in:
parent
169bdd158b
commit
722437d8f4
13
Makefile
13
Makefile
@ -18,13 +18,14 @@ preview-doc: ## Previews the project documentation for web.
|
|||||||
generate-doc: generate-doc-setup generate-doc-xcode generate-doc-github ## Generates the project documentation for Xcode and Github.
|
generate-doc: generate-doc-setup generate-doc-xcode generate-doc-github ## Generates the project documentation for Xcode and Github.
|
||||||
|
|
||||||
generate-doc-setup:
|
generate-doc-setup:
|
||||||
# Checks if the documentation root folder exists.
|
ifeq ("$(shell test -e ${SWIFT_DOC_GITHUB_OUTPUT} && echo yes)","yes")
|
||||||
ifeq ("$(shell test -e ${SWIFT_DOC_FOLDER} && echo yes)","yes")
|
@echo Cleaning up the Github pages folder...
|
||||||
@echo Cleaning up the documentation folder...
|
@rm -rf ${SWIFT_DOC_GITHUB_OUTPUT}
|
||||||
@rm -rf ${SWIFT_DOC_FOLDER}
|
endif
|
||||||
|
ifeq ("$(shell test -e ${SWIFT_DOC_XCODE_OUTPUT} && echo yes)","yes")
|
||||||
|
@echo Cleaning up the Xcode documentation archive...
|
||||||
|
@rm -rf ${SWIFT_DOC_XCODE_OUTPUT}
|
||||||
endif
|
endif
|
||||||
@echo Creating the documentation folder...
|
|
||||||
@mkdir ${SWIFT_DOC_FOLDER}
|
|
||||||
|
|
||||||
generate-doc-xcode:
|
generate-doc-xcode:
|
||||||
@echo Generating documentation for Xcode...
|
@echo Generating documentation for Xcode...
|
||||||
|
Loading…
x
Reference in New Issue
Block a user