Amended "pristine" task and removed the "test-doc" target in the Makefile file.

This commit is contained in:
Javier Cicchelli 2025-03-27 01:20:55 +01:00
parent a74bad7bd5
commit 70b0e275c6

View File

@ -6,7 +6,6 @@ BINARY_NAME_EXECUTABLE = doxy
DOCC_ARCHIVES = Doxy*.doccarchive DOCC_ARCHIVES = Doxy*.doccarchive
DOCC_ARCHIVES_FOLDER = Resources/Archives DOCC_ARCHIVES_FOLDER = Resources/Archives
DOCC_BUILD_FOLDER = .build/plugins/Swift-DocC/outputs DOCC_BUILD_FOLDER = .build/plugins/Swift-DocC/outputs
DOCC_TEST_FOLDER = Resources/Archives/Test
DOCKER_IMAGE_NAME = doxy-app DOCKER_IMAGE_NAME = doxy-app
TARGET_APP = DoxyApp TARGET_APP = DoxyApp
TARGET_LIBRARY = DoxyLibrary TARGET_LIBRARY = DoxyLibrary
@ -28,6 +27,12 @@ endef
# PROJECT # PROJECT
outdated: ## Lists the SPM package dependencies that can be updated.
@swift package update --dry-run
update: ## Updates the SPM package dependencies.
@swift package update
build: ## Builds the project locally. build: ## Builds the project locally.
@swift build -c release @swift build -c release
@ -46,12 +51,6 @@ uninstall: ## Uninstalls the built executable from the local system.
# SWIFT PACKAGE MANAGER # SWIFT PACKAGE MANAGER
outdated: ## Lists the SPM package dependencies that can be updated.
@swift package update --dry-run
update: ## Updates the SPM package dependencies.
@swift package update
clean: ## Deletes built SPM artifacts from the package. clean: ## Deletes built SPM artifacts from the package.
@swift package clean @swift package clean
@ -63,7 +62,6 @@ purge: ## Purges the global repository cache.
pristine: clean reset purge ## Cleans up all built archifacts and generated documentations from the project. pristine: clean reset purge ## Cleans up all built archifacts and generated documentations from the project.
@rm -drf $(DOCC_ARCHIVES_FOLDER)/$(DOCC_ARCHIVES) @rm -drf $(DOCC_ARCHIVES_FOLDER)/$(DOCC_ARCHIVES)
@rm -drf $(DOCC_TEST_FOLDER)/$(DOCC_ARCHIVES)
# DOCUMENTATION # DOCUMENTATION
@ -79,11 +77,6 @@ preview-doc: ## Previews the DocC documentation for the library target.
--symbol-graph-minimum-access-level internal\ --symbol-graph-minimum-access-level internal\
--enable-inherited-docs --enable-inherited-docs
test-doc: ## Builds the DocC documentation for the app and the library targets in the test folder.
@$(call generate-archive,$(TARGET_APP))
@$(call generate-archive,$(TARGET_LIBRARY))
@$(call copy-archives,$(DOCC_TEST_FOLDER))
# DOCKER # DOCKER
build-image: ## Builds a docker image out of the current source code build-image: ## Builds a docker image out of the current source code