logo

utils-std

Collection of commonly available Unix tools git clone https://anongit.hacktivis.me/git/utils-std.git
commit: b41006e7c3479df20bdc97b0d2e14565834329c0
parent 94a71858f3219964512f4b02410ce0be7c91df07
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 21 Nov 2024 09:31:25 +0100

Makefile: Add bootstrap.sh target

Diffstat:

MMakefile3+++
Mbootstrap-regen.sh2+-
2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makefile b/Makefile @@ -12,6 +12,9 @@ RM=rm all: $(EXE) $(MAN1SO) +bootstrap.sh: Makefile bootstrap-regen.sh + ./bootstrap-regen.sh + .c: $(RM) -f ${<:=.gcov} ${@:=.gcda} ${@:=.gcno} $(CC) -std=c99 $(CFLAGS) -o $@ $< $(LDFLAGS) $(LDSTATIC) diff --git a/bootstrap-regen.sh b/bootstrap-regen.sh @@ -24,7 +24,7 @@ make clean set -ex ' - make -n CC='$$CC' CFLAGS='$$CFLAGS' LDFLAGS='$$LDFLAGS' LDSTATIC='$$LDSTATIC' YACC='$$YACC' $targets | grep -vF .c.gcov + 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'