summaryrefslogtreecommitdiff
path: root/mk/defs.Linux.mk
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-08-23 16:04:26 +0000
committerjschauma <jschauma@pkgsrc.org>2003-08-23 16:04:26 +0000
commit0bafefa0e73189c0143864cca55cac70e7f6f648 (patch)
treec83fa463371552c42c4e9c19d0b22f62f936281f /mk/defs.Linux.mk
parent1801b526ec7eb0204d6f10ae2e902ef749e7b8b7 (diff)
downloadpkgsrc-0bafefa0e73189c0143864cca55cac70e7f6f648.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