From 3ee7878c0254c14c380cc06da026f727294adc23 Mon Sep 17 00:00:00 2001 From: Javier Cicchelli Date: Thu, 27 Mar 2025 00:05:16 +0100 Subject: [PATCH] Updated the "install" and "uninstall" targets in the Makefile file. --- Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 290a323..0fb27f1 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ BINARY_BUILD_FOLDER = .build/release BINARY_INSTALL_FOLDER = /usr/local/bin -BINARY_EXECUTABLE = doxy +BINARY_NAME_EXECUTABLE = doxy DOCC_ARCHIVES = Doxy*.doccarchive DOCC_ARCHIVES_FOLDER = Resources/Archives DOCC_BUILD_FOLDER = .build/plugins/Swift-DocC/outputs @@ -32,15 +32,14 @@ build: ## Builds the project locally. @swift build -c release install: build ## Installs the built executable into the local system. - @mv $(BINARY_BUILD_FOLDER)/App $(BINARY_BUILD_FOLDER)/$(BINARY_EXECUTABLE) @install -d $(BINARY_BUILD_FOLDER) - @install "$(BINARY_BUILD_FOLDER)/$(BINARY_EXECUTABLE)" "$(BINARY_INSTALL_FOLDER)" + @install "$(BINARY_BUILD_FOLDER)/$(BINARY_NAME_EXECUTABLE)" "$(BINARY_INSTALL_FOLDER)" run: ## Runs the project locally. @swift run -c release uninstall: ## Uninstalls the built executable from the local system. - @rm -rf "$(BINARY_INSTALL_FOLDER)/$(BINARY_EXECUTABLE)" + @rm -rf "$(BINARY_INSTALL_FOLDER)/$(BINARY_NAME_EXECUTABLE)" tests: ## Runs all the test cases of the project. @swift test --enable-swift-testing