commit ae6ccc6e81328e3457c21e6e2cecd5a0ac45aa78
parent b4fd240175fc0db1966cc47b39905e96fba3bef5
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Fri, 10 May 2024 08:58:47 +0200
Reorganize MACROS definition in config.mk file
Sort MACROS according to the probability that the user will modify them.
The project script to be built is therefore the first macro in the file,
followed by the macro defining the installation directory, etc.
The README file has also been slightly modified. It is now 72 columns
long, to match the convention of plain text e-mails, and the distclean
target description has been updated.
Diffstat:
3 files changed, 26 insertions(+), 24 deletions(-)
diff --git a/Makefile b/Makefile
@@ -50,6 +50,7 @@ makefile:
prefix:
@# store in .prefix the absolute prefix path
- @(p=$$(echo $(PREFIX)) && mkdir -p -- "$${p}" && cd -- "$${p}" && pwd) > .prefix
+ @(p=$$(echo $(PREFIX)) && mkdir -p -- "$${p}" && cd -- "$${p}" && pwd) \
+ > .prefix
include lint.mk
diff --git a/README.md b/README.md
@@ -1,15 +1,16 @@
# Star-Build
-Automation tool that builds and installs programs and libraries and their
-dependencies from source code. Pre-compiled binaries can also be deployed.
+Automation tool that builds and installs programs and libraries and
+their dependencies from source code. Pre-compiled binaries can also be
+deployed.
## Requirements
-To use Star-Build you need a POSIX implementation of make and a POSIX compliant
-shell. The remaining dependencies depend on the programs and libraries to be
-build and installed. However, you can assume that the `curl`, `git`,
-`sha512sum` and `tar` utilities must be installed, as well as a C99 compiler
-and C++11 compiler.
+To use Star-Build you need a POSIX implementation of make and a POSIX
+compliant shell. The remaining dependencies depend on the programs and
+libraries to be build and installed. However, you can assume that the
+`curl`, `git`, `sha512sum` and `tar` utilities must be installed, as
+well as a C99 compiler and C++11 compiler.
## Running star-build
@@ -25,7 +26,7 @@ Clean up intermediary files:
make clean
-Deep cleaning, i.e. trying to restore the directory to its original state:
+Deep cleaning, i.e. removal of intermediate files and cached data:
make distclean
@@ -35,6 +36,6 @@ Copyright © 2023, 2024 |Méso|Star> (contact@meso-star.com)
## License
-It is free software released under the GPL v3+ license: GNU GPL version 3 or
-later. You are welcome to redistribute them under certain conditions; refer to
-the COPYING file for details.
+It is free software released under the GPL v3+ license: GNU GPL version
+3 or later. You are welcome to redistribute them under certain
+conditions; refer to the COPYING file for details.
diff --git a/config.mk b/config.mk
@@ -13,29 +13,29 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
-# Installation path
-PREFIX = ./local
-
-# List of repositories
-REPO = https://gitlab.com/meso-star
-REPO_BIN = https://www.meso-star.com/packages/v0.4/
-REPO_VAPLV = https://gitlab.com/vaplv
-
# Project to build. To see the available projects, list the shell
# scripts in
# the src directory:
# find src/ -name "*.sh" ! -name "build.sh" | sort
BUILD = src/star-engine_0.15.sh
-# Type of library to build, either SHARED or STATIC
-LIB_TYPE = SHARED
+# Installation path
+PREFIX = ./local
+
+# Are SIMD instruction sets enabled?
+USE_SIMD = 0
# How to build programs and libraries, typically in RELEASE or in DEBUG
BUILD_TYPE = RELEASE
-# Are SIMD instruction sets enabled?
-USE_SIMD = 0
+# Type of library to build, either SHARED or STATIC
+LIB_TYPE = SHARED
# Cache directory, i.e. temporary directory into which temporary
# resources are downloaded and sources compiled before installation.
CACHE = ./cache
+
+# List of repositories
+REPO = https://gitlab.com/meso-star
+REPO_BIN = https://www.meso-star.com/packages/v0.4/
+REPO_VAPLV = https://gitlab.com/vaplv