summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-09-03 15:36:03 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-09-03 15:41:15 -0400
commitda872df0949ce53d5416a90d5bdb4a8391726cb5 (patch)
tree76ceafa9928a72cfd4d78c9028b44a4b376d0427
parent2135b00d215efc5c2c38e1abd3254baf31229ad4 (diff)
downloadbfs-da872df0949ce53d5416a90d5bdb4a8391726cb5.tar.xz
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 ---
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
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