star-build

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

commit ad1b01187777e30d19eaafc7398471084d3f55da
parent d2fcd2db3aa21a47ad6b16d1a4d732bf23bac0bd
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Thu, 18 Jul 2024 16:23:11 +0200

Update the main targets of the makefile

Change the order in which Makefiles are submitted to the make command
line. Process the main Makefile first, then the Makefile generated for
the project to be built. In this way, macros defined in config.mk,
included in the main Makefile, are also defined for the generated
Makefile.

Diffstat:
MMakefile | 12+++++-------
1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/Makefile b/Makefile @@ -26,29 +26,27 @@ install: makefile prefix PATH="$${prefix}/bin:$${PATH}" \ PKG_CONFIG_PATH="$${prefix}/lib/pkgconfig:$${PKG_CONFIG_PATH}" \ TEXINPUTS="$${prefix}/share/tex:$${TEXINPUTS}" \ - $(MAKE) -f $(MK) -f Makefile install_all + $(MAKE) -f Makefile -f $(MK) install_all clean: makefile - @$(MAKE) -f $(MK) -f Makefile clean_all + @$(MAKE) -f Makefile -f $(MK) clean_all rm -rf .prefix $(MK) distclean: makefile - @$(MAKE) -f $(MK) -f Makefile distclean_all + @$(MAKE) -f Makefile -f $(MK) distclean_all rm -rf .prefix src/*.sh.mk uninstall: makefile - @$(MAKE) -f $(MK) -f Makefile uninstall_all + @$(MAKE) -f Makefile -f $(MK) uninstall_all mirror: makefile mkdir -p "$(MIRROR)" - @$(MAKE) -f $(MK) -f Makefile mirror_all + @$(MAKE) -f Makefile -f $(MK) mirror_all # Generate the Makefile of the build makefile: cache @echo "Setup $(MK)" @{ \ - printf 'CACHE = %s\n' "$(CACHE)"; \ - printf 'MIRROR = %s\n' "$(MIRROR)"; \ PATH="src:$${PATH}" USE_SIMD=$(USE_SIMD) \ $(SHELL) "$(BUILD)"; \ } > "$(MK)"