mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-28 04:03:39 +08:00
0836a5b9b4
These messages are automatically generated as if `-w` were specified
at the gmake command line. The `--no-print-directory` option supresses
these messages.
(cherry picked from commit b7f1103088
)
26 lines
612 B
Makefile
26 lines
612 B
Makefile
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
|
|
|
|
#by default bmake will cd into ./obj first
|
|
.OBJDIR: ./
|
|
|
|
.PHONY: FRC
|
|
$(.TARGETS): FRC
|
|
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
|
|
|
|
.DONE .DEFAULT: .SILENT
|
|
$(GMAKE) $(GARGS) $(.TARGETS:S,.DONE,,) $(JARG)
|
|
|
|
.ERROR: .SILENT
|
|
if ! which $(GMAKE) > /dev/null; then \
|
|
echo "GNU Make is required!"; \
|
|
fi
|