Rearranged some of the targets in the Makefile file.
This commit is contained in:
parent
b97c19f972
commit
ef12d24de6
38
Makefile
38
Makefile
@ -31,39 +31,39 @@ endef
|
|||||||
build: ## Builds the project locally.
|
build: ## Builds the project locally.
|
||||||
@swift build -c release
|
@swift build -c release
|
||||||
|
|
||||||
install: build ## Installs the built executable into the local system.
|
|
||||||
@install -d $(BINARY_BUILD_FOLDER)
|
|
||||||
@install "$(BINARY_BUILD_FOLDER)/$(BINARY_NAME_EXECUTABLE)" "$(BINARY_INSTALL_FOLDER)"
|
|
||||||
|
|
||||||
run: ## Runs the project locally.
|
run: ## Runs the project locally.
|
||||||
@swift run -c release
|
@swift run -c release
|
||||||
|
|
||||||
uninstall: ## Uninstalls the built executable from the local system.
|
|
||||||
@rm -rf "$(BINARY_INSTALL_FOLDER)/$(BINARY_NAME_EXECUTABLE)"
|
|
||||||
|
|
||||||
tests: ## Runs all the test cases of the project.
|
tests: ## Runs all the test cases of the project.
|
||||||
@swift test --enable-swift-testing
|
@swift test --enable-swift-testing
|
||||||
|
|
||||||
|
install: build ## Installs the built executable into the local system.
|
||||||
|
@install -d $(BINARY_BUILD_FOLDER)
|
||||||
|
@install "$(BINARY_BUILD_FOLDER)/$(BINARY_NAME_EXECUTABLE)" "$(BINARY_INSTALL_FOLDER)"
|
||||||
|
|
||||||
|
uninstall: ## Uninstalls the built executable from the local system.
|
||||||
|
@rm -rf "$(BINARY_INSTALL_FOLDER)/$(BINARY_NAME_EXECUTABLE)"
|
||||||
|
|
||||||
# SWIFT PACKAGE MANAGER
|
# SWIFT PACKAGE MANAGER
|
||||||
|
|
||||||
clean: ## Deletes built SPM artifacts from the package.
|
|
||||||
@swift package clean
|
|
||||||
|
|
||||||
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_TEST_FOLDER)/$(DOCC_ARCHIVES)
|
|
||||||
|
|
||||||
purge: ## Purges the global repository cache.
|
|
||||||
@swift package purge-cache
|
|
||||||
|
|
||||||
outdated: ## Lists the SPM package dependencies that can be updated.
|
outdated: ## Lists the SPM package dependencies that can be updated.
|
||||||
@swift package update --dry-run
|
@swift package update --dry-run
|
||||||
|
|
||||||
|
update: ## Updates the SPM package dependencies.
|
||||||
|
@swift package update
|
||||||
|
|
||||||
|
clean: ## Deletes built SPM artifacts from the package.
|
||||||
|
@swift package clean
|
||||||
|
|
||||||
reset: ## Resets the complete SPM cache/build folder from the package.
|
reset: ## Resets the complete SPM cache/build folder from the package.
|
||||||
@swift package reset
|
@swift package reset
|
||||||
|
|
||||||
update: ## Updates the SPM package dependencies.
|
purge: ## Purges the global repository cache.
|
||||||
@swift package update
|
@swift package purge-cache
|
||||||
|
|
||||||
|
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_TEST_FOLDER)/$(DOCC_ARCHIVES)
|
||||||
|
|
||||||
# DOCUMENTATION
|
# DOCUMENTATION
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user