mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
19b89983a1
Smarter BSDmakefile that automatically calls gmake to build the targets,
even including `-j` if provided. README.md can be simplified to remove
`gmake` references from build instructions for BSD users.
(cherry picked from commit cc35241a6e
)
17 lines
297 B
Makefile
17 lines
297 B
Makefile
JARG =
|
|
GMAKE = "gmake"
|
|
.if "$(.MAKE.JOBS)" != ""
|
|
JARG = -j$(.MAKE.JOBS)
|
|
.endif
|
|
|
|
#by default bmake will cd into ./obj first
|
|
.OBJDIR: ./
|
|
|
|
.DONE .DEFAULT: .SILENT
|
|
$(GMAKE) $(.TARGETS:S,.DONE,,) $(JARG)
|
|
|
|
.ERROR: .SILENT
|
|
if ! which $(GMAKE) > /dev/null; then \
|
|
echo "GNU Make is required!"; \
|
|
fi
|
|
|