mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
40a90f1b2f
.DEFAULT or .DONE cannot be set as .PHONY so this hack was required.
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
|