Refactor build process, update project configs, and clean up documentation
The build process has been refactored to improve maintainability and productivity. This includes simplifying the .gitlab-ci.yml file by utilizing a more updated image which has the necessary dependencies pre-installed. The Makefile has been heavily restructured to improve understandability and increase the flexibility of the build process. With these changes, the dependencies installation, uninstallation and removal of build artifacts can now be handled directly from the Makefile. The configuration in project.json was updated, reducing redundancy and clarifying output paths. In addition, README.md has been cleaned up to improve readability and keep the documentation up-to-date with the codebase changes. For instance, unnecessary functions in the usage section have been removed and links in the table of contents have been fixed. Lastly, the copyright dates in the LICENSE file have been extended to include 2023 and the format improved for better readability.
This commit is contained in:
parent
7895dc2464
commit
429ca491ed
5 changed files with 58 additions and 73 deletions
29
Makefile
29
Makefile
|
@ -1,8 +1,27 @@
|
|||
release:
|
||||
ncc build --config="release"
|
||||
# Variables
|
||||
NCC = ncc
|
||||
PACKAGE_NAME = net.nosial.optslib.ncc
|
||||
BUILD_CONFIG = release
|
||||
|
||||
install:
|
||||
ncc package install --package="build/release/net.nosial.optslib.ncc" --skip-dependencies --reinstall -y
|
||||
# Directories
|
||||
SRC_DIR = src
|
||||
BUILD_DIR = build/$(BUILD_CONFIG)
|
||||
|
||||
.PHONY: all release install uninstall clean
|
||||
|
||||
all: release install
|
||||
|
||||
release: prepare_build
|
||||
$(NCC) build --config=$(BUILD_CONFIG)
|
||||
|
||||
install: prepare_build
|
||||
$(NCC) package install --package="$(BUILD_DIR)/$(PACKAGE_NAME)" --skip-dependencies -y
|
||||
|
||||
uninstall:
|
||||
ncc package uninstall -y --package="net.nosial.optslib"
|
||||
$(NCC) package uninstall -y --package="$(PACKAGE_NAME)"
|
||||
|
||||
clean:
|
||||
rm -rf $(BUILD_DIR)
|
||||
|
||||
prepare_build:
|
||||
mkdir -p $(BUILD_DIR)
|
Loading…
Add table
Add a link
Reference in a new issue