summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-08-23 16:04:26 +0000
committerjschauma <jschauma>2003-08-23 16:04:26 +0000
commit87bba03685b110265a62d72d9138bb47a27a5307 (patch)
treec83fa463371552c42c4e9c19d0b22f62f936281f /mk
parentfa9ee1b8e06b0aba6919c48b93f8ad468e0f14c8 (diff)
downloadpkgsrc-87bba03685b110265a62d72d9138bb47a27a5307.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')
-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