aboutsummaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorMartin Aberg <martin@fripost.org>2017-12-17 21:24:15 +0100
committertgingold <tgingold@users.noreply.github.com>2017-12-18 06:05:48 +0100
commit487e458b61836ac3398fa83d623e5a07da5b2a7a (patch)
treeaf7743d405816f34ea9b1a57d31f386f8014191d /configure
parentfaa1c0ef7bba215666443f133eb732cca14109d7 (diff)
downloadghdl-487e458b61836ac3398fa83d623e5a07da5b2a7a.tar.gz
ghdl-487e458b61836ac3398fa83d623e5a07da5b2a7a.tar.bz2
ghdl-487e458b61836ac3398fa83d623e5a07da5b2a7a.zip
configure: Allow user to specify make tool
configure runs the 'create-dirs' target in Makefile (generated from Makefile.in). This Makefile requires GNU Make. In FreeBSD systems, the command 'make' is the BSD make utility and GNU Make is available in the package management system. When GNU Make is installed in FreeBSD, the command has the name 'gmake'. This commit allows the user to specify a make tool with the MAKE environvent variable. If not specified, 'make' is the default. Example: MAKE=gmake configure
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure b/configure
index 4c7f29c60..dbd6cbf88 100755
--- a/configure
+++ b/configure
@@ -8,6 +8,7 @@ CC=${CC:-gcc}
CXX=${CXX:-clang++}
CFLAGS=${CFLAGS:--g}
GNATMAKE=${GNATMAKE:-gnatmake}
+MAKE=${MAKE:-make}
LDFLAGS=
prefix=/usr/local
libdirsuffix=lib/ghdl
@@ -299,7 +300,7 @@ if ! sh ./config.status; then
fi
# Create dirs
-make create-dirs
+$MAKE create-dirs
# Generate ortho_code-x86-flags
if test $backend = mcode; then