summaryrefslogtreecommitdiff
path: root/mk/defs.Linux.mk
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-08-23 16:04:26 +0000
committerjschauma <jschauma>2003-08-23 16:04:26 +0000
commit5bdd468cb4ce4f58f3a992a2ca291d7e0c02bb16 (patch)
treec83fa463371552c42c4e9c19d0b22f62f936281f /mk/defs.Linux.mk
parentd69bd8c46f5add4041e0ffb9eed026cfef55516f (diff)
downloadpkgsrc-5bdd468cb4ce4f58f3a992a2ca291d7e0c02bb16.tar.gz
Set GMAKE to /usr/bin/make only of that actually exists, else set it
to ${LOCALBASE}/bin/gmake. Patch by Soren Jacobsen in PR pkg/22506. (Not closing that PR, as we should determine a procedure to bootstrap on a system without any make.)
Diffstat (limited to 'mk/defs.Linux.mk')
-rw-r--r--mk/defs.Linux.mk9
1 files changed, 7 insertions, 2 deletions
diff --git a/mk/defs.Linux.mk b/mk/defs.Linux.mk
index a7e20e03a7b..e40f39164f5 100644
--- a/mk/defs.Linux.mk
+++ b/mk/defs.Linux.mk
@@ -1,4 +1,4 @@
-# $NetBSD: defs.Linux.mk,v 1.53 2003/06/06 19:07:42 jschauma Exp $
+# $NetBSD: defs.Linux.mk,v 1.54 2003/08/23 16:04:26 jschauma Exp $
#
# Variable definitions for the Linux operating system.
@@ -37,7 +37,13 @@ FGREP?= /usr/bin/fgrep
.endif
FILE_CMD?= /usr/bin/file
FIND?= /usr/bin/find
+.if exists(/usr/bin/make)
GMAKE?= /usr/bin/make
+_OPSYS_HAS_GMAKE= yes # GNU make is standard
+.else
+GMAKE?= ${LOCALBASE}/bin/gmake
+_OPSYS_HAS_GMAKE= no # rare, but possible
+.endif
.if exists(/bin/grep)
GREP?= /bin/grep
.elif exists(/usr/bin/grep)
@@ -148,7 +154,6 @@ IMAKE_MANNEWSUFFIX= ${IMAKE_MAN_SUFFIX}
_DO_SHLIB_CHECKS= no # on installation, fixup PLIST for shared libs
_IMAKE_MAKE= ${MAKE} # program which gets invoked by imake
-_OPSYS_HAS_GMAKE= yes # GNU make is standard
.if exists(/usr/include/netinet6) || exists(/usr/include/linux/in6.h)
_OPSYS_HAS_INET6= yes # IPv6 is standard
.else