autogen.sh: learn about gmake

Fixes: 69cce257eb6183dda114d8f5b8ca0325cfabe2e1
("69cce257eb6183dda114d8f5b8ca0325cfabe2e1")
This commit is contained in:
Azat Khuzhin 2016-10-31 22:37:16 +03:00
parent 69cce257eb
commit 9376ac4dff

View File

@ -1,6 +1,10 @@
#!/bin/sh
make maintainer-clean >/dev/null 2>/dev/null
MAKE=make
if command -v gmake >/dev/null 2>/dev/null; then
MAKE=gmake
fi
$MAKE maintainer-clean >/dev/null 2>/dev/null
if [ -x "`which autoreconf 2>/dev/null`" ] ; then
exec autoreconf -ivf