Implemented the "install" and "uninstall" targets in the Makefile file.
This commit is contained in:
parent
f9cdef7312
commit
cf4d06d9aa
11
Makefile
11
Makefile
@ -1,5 +1,8 @@
|
||||
# VARIABLES
|
||||
|
||||
BINARY_BUILD_FOLDER = .build/release
|
||||
BINARY_INSTALL_FOLDER = /usr/local/bin
|
||||
BINARY_EXECUTABLE = doxy
|
||||
DOCC_ARCHIVES = Doxy*.doccarchive
|
||||
DOCC_ARCHIVES_FOLDER = Resources/Archives
|
||||
DOCC_BUILD_FOLDER = .build/plugins/Swift-DocC/outputs
|
||||
@ -28,9 +31,17 @@ endef
|
||||
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)"
|
||||
|
||||
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)"
|
||||
|
||||
tests: ## Runs all the test cases of the project.
|
||||
@swift test --enable-swift-testing
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user