mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
cc35241a6e
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.
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
|
|
|