-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 810 Bytes
/
Copy pathMakefile
File metadata and controls
24 lines (21 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# BSD make (bmake) compatibility shim — full build rules live in GNUmakefile.
# FreeBSD: pkg install gmake (then: gmake all, or make all via this shim)
#
# GNU make reads GNUmakefile first when present; bmake uses this file only.
GMAKE ?= gmake
# Default goal when invoked as plain "make"
all:
@command -v $(GMAKE) >/dev/null 2>&1 || { \
echo "ERROR: GNU Make ($(GMAKE)) is required." >&2; \
echo " FreeBSD: pkg install gmake && gmake all" >&2; \
exit 1; \
}
@$(GMAKE) -f GNUmakefile all
# bmake: delegate any other target (build, test, package, …) to GNUmakefile
.DEFAULT:
@command -v $(GMAKE) >/dev/null 2>&1 || { \
echo "ERROR: GNU Make ($(GMAKE)) is required." >&2; \
echo " FreeBSD: pkg install gmake && gmake ${.TARGET}" >&2; \
exit 1; \
}
@$(GMAKE) -f GNUmakefile ${.TARGET}