From da872df0949ce53d5416a90d5bdb4a8391726cb5 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Tue, 3 Sep 2024 15:36:03 -0400 Subject: build: Mark some recipes as .SILENT This suppresses output like this on a no-op remake with BSD make: $ make -j8 --- gen/config.mk --- --- gen/version.i.new --- --- gen/version.i --- --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index dc14177..5a46cfc 100644 --- a/Makefile +++ b/Makefile @@ -27,10 +27,11 @@ asan lsan msan tsan ubsan gcov lint release:: # Print an error if `make` is run before `./configure` gen/config.mk:: - @if ! [ -e $@ ]; then \ + if ! [ -e $@ ]; then \ printf 'error: You must run `./configure` before `%s`.\n' "${MAKE}" >&2; \ false; \ fi +.SILENT: gen/config.mk ## Build phase (`make`) @@ -67,11 +68,13 @@ ${OBJS}: gen/config.mk # Save the version number to this file, but only update version.c if it changes gen/version.i.new:: - @${MKDIR} ${@D} - @build/version.sh | tr -d '\n' | build/embed.sh >$@ + ${MKDIR} ${@D} + build/version.sh | tr -d '\n' | build/embed.sh >$@ +.SILENT: gen/version.i.new gen/version.i: gen/version.i.new - @test -e $@ && cmp -s $@ ${.ALLSRC} && ${RM} ${.ALLSRC} || mv ${.ALLSRC} $@ + test -e $@ && cmp -s $@ ${.ALLSRC} && ${RM} ${.ALLSRC} || mv ${.ALLSRC} $@ +.SILENT: gen/version.i obj/src/version.o: gen/version.i -- cgit v1.2.3