star-build

Automation tool for project installation
git clone git://git.meso-star.fr/star-build.git
Log | Files | Refs | README | LICENSE

commit fbee6bd6edd4bf2397fbd5087a42c00f6be4674d
parent 27a2c2948bb22f41ce0a099de375506ca28d2c77
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Tue, 21 Apr 2026 17:53:46 +0200

Adds support for absolute paths for the BUILD macro

Until now, it was assumed that the BUILD macro referred to a build
script relative to the star-build directory. The generation system
appended the star-build absolute path to the BUILD macro to convert its
path into an absolute path. Consequently, the installation would fail if
the BUILD macro contained the absolute path to a build script rather
than a relative one.

This update removes this limitation to simplify the process when a user
wants to run a build script external to star-build. Now, the user simply
needs to define the absolute path in the BUILD macro, whereas previously
they had to enter a relative path relative to star-build.

Diffstat:
MMakefile | 5++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -48,7 +48,10 @@ makefile: cache @echo "Setup $(MK)" @rm -f $(MK) @{ \ - build="$${PWD}/$(BUILD)"; \ + build="$(BUILD)"; \ + if [ "$${build}" == "$${build#/}" ]; then \ + build="$${PWD}/$${build}"; \ + fi; \ cd src; \ PATH=$${PATH} \ SIMD_WIDTH=$(SIMD_WIDTH) \