From b7f1103088af5748177df63c3d2de05bbba33da5 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Thu, 12 Oct 2017 12:48:15 -0500 Subject: [PATCH] Silence directory change messages when calling gmake from BSD make These messages are automatically generated as if `-w` were specified at the gmake command line. The `--no-print-directory` option supresses these messages. --- BSDmakefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/BSDmakefile b/BSDmakefile index ce389da0c..1be653200 100644 --- a/BSDmakefile +++ b/BSDmakefile @@ -1,5 +1,10 @@ JARG = GMAKE = "gmake" +#When gmake is called from another make instance, -w is automatically added +#which causes extraneous messages about directory changes to be emitted. +#--no-print-directory silences these messages. +GARGS = "--no-print-directory" + .if "$(.MAKE.JOBS)" != "" JARG = -j$(.MAKE.JOBS) .endif @@ -9,10 +14,10 @@ JARG = -j$(.MAKE.JOBS) .PHONY: FRC $(.TARGETS): FRC - $(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG) + $(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG) .DONE .DEFAULT: .SILENT - $(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG) + $(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG) .ERROR: .SILENT if ! which $(GMAKE) > /dev/null; then \