Skip to content

Commit b7f1103

Browse files
committed
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.
1 parent 40a90f1 commit b7f1103

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: BSDmakefile

+7-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
JARG =
22
GMAKE = "gmake"
3+
#When gmake is called from another make instance, -w is automatically added
4+
#which causes extraneous messages about directory changes to be emitted.
5+
#--no-print-directory silences these messages.
6+
GARGS = "--no-print-directory"
7+
38
.if "$(.MAKE.JOBS)" != ""
49
JARG = -j$(.MAKE.JOBS)
510
.endif
@@ -9,10 +14,10 @@ JARG = -j$(.MAKE.JOBS)
914

1015
.PHONY: FRC
1116
$(.TARGETS): FRC
12-
$(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG)
17+
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
1318

1419
.DONE .DEFAULT: .SILENT
15-
$(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG)
20+
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
1621

1722
.ERROR: .SILENT
1823
if ! which $(GMAKE) > /dev/null; then \

0 commit comments

Comments
 (0)