mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-28 22:03:12 +00:00
30a74dcf2d
.DEFAULT or .DONE cannot be set as .PHONY so this hack was required.
(cherry picked from commit 40a90f1b2f
)
20 lines
366 B
Makefile
20 lines
366 B
Makefile
JARG =
|
|
GMAKE = "gmake"
|
|
.if "$(.MAKE.JOBS)" != ""
|
|
JARG = -j$(.MAKE.JOBS)
|
|
.endif
|
|
|
|
#by default bmake will cd into ./obj first
|
|
.OBJDIR: ./
|
|
|
|
.PHONY: FRC
|
|
$(.TARGETS): FRC
|
|
$(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG)
|
|
|
|
.DONE .DEFAULT: .SILENT
|
|
$(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG)
|
|
|
|
.ERROR: .SILENT
|
|
if ! which $(GMAKE) > /dev/null; then \
|
|
echo "GNU Make is required!"; \
|
|
fi
|