]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commit
Fix build system to be compatible with BSD pmake
authorTheodore Ts'o <tytso@mit.edu>
Sat, 2 Jan 2016 02:44:12 +0000 (21:44 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 2 Jan 2016 06:29:55 +0000 (01:29 -0500)
commit0355d6d047884f5ba41ef526fc7d13fba1f6b258
treed83c4fea2b09d9b74d618303d9db324865d0b0c4
parentd030908bfc424d492c10e6da94ae938e252093ef
Fix build system to be compatible with BSD pmake

This fixes a number of incompatibilities which caused maint branch to
fail to build on on FreeBSD.  Also fix the Makefile in the tests
directory so that "make -jN check" works correctly on FreeBSD.

Previously the Makefile in the tests directory used a construct which
was specific to GNU Make, which which silently expanded to an empty
list, which caused "make check" to be a no-op when running using BSD's
pmake.  This Makefile has been changed to use the != macro assignment
syntax which is common to GNU make and BSD pmake.  It's technically
not completely portable (it will not be recognized by Solaris's ccs
make, for example), but most other operating systems ship GNU make
(Solaris, AIX), or BSD pmake (*BSD, Mac OS) as either the primary or
alternative make utility that this should an acceptable compromise,
since it makes running all of tests using something like "make -j8
check" or "make -j16 check" run *much* faster.

There are still some caveats if using BSD pmake; in particular, if the
configure script is run on a system which has GNU make (installed as
gmake on FreeBSD for example), the configure script will find it, and
enable some GNU make features in the Makefile, and the generated
makefiles *must* be built using gmake.  However, if isolated build
jail / chroot is used which only has pmake, the Makefiles should now
work with pmake.

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
MCONFIG.in
Makefile.in
misc/Makefile.in
tests/Makefile.in