commit: d4ebbce4d1af9f1b4d654c79a996daa120783dd5
parent e1bdccc8c91f5c8d3badc971907e28848353685c
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Tue, 3 Dec 2024 01:21:22 +0100
bootstrap-regen.sh: use $MAKE instead of hardcoding
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bootstrap-regen.sh b/bootstrap-regen.sh
@@ -11,7 +11,9 @@
commands="cat echo printf rm test tr"
targets="$(printf 'cmd/%s ' $commands)"
-make clean
+: ${MAKE:=make}
+
+$MAKE clean
(
printf '#!/bin/sh
# SPDX-FileCopyrightText: 2017 Haelwenn (lanodan) Monnier <contact+utils@hacktivis.me>
@@ -24,7 +26,7 @@ make clean
set -ex
'
- make -n CC='$$CC' CFLAGS='$$CFLAGS' LDFLAGS='$$LDFLAGS' LDSTATIC='$$LDSTATIC' YACC='$$YACC' $targets | grep -vF -e .c.gcov -e 'make[1]:'
+ $MAKE -n CC='$$CC' CFLAGS='$$CFLAGS' LDFLAGS='$$LDFLAGS' LDSTATIC='$$LDSTATIC' YACC='$$YACC' $targets | grep -vF -e .c.gcov -e 'make[1]:'
printf "
./cmd/printf '\\nDone, you should now be able to run PATH=cmd/:\$PATH ./configure && make clean && make\\n'