spack/lib/spack
Adam J. Stewart 2e8a820afd Even better Makefile target parsing (#8819)
#8223 replaced regex-based makefile target parsing with an invocation of
"make -q". #8818 discovered that "make -q" can result in an error for some
packages.

Also, the "make -q" strategy relied on interpreting the error code, which only
worked for GNU Make and not BSD Make (which was deemed acceptable at
the time). As an added bonus, this implementation ignores the exit code and
instead parses STDERR for any indications that the target does not exist; this
works for both GNU Make and BSD Make.

#8223 also updated ninja target detection to use "ninja -t targets". This does
not change that behavior but makes it more-explicit with "ninja -t targets all"

This also adds tests for detection of "make" and "ninja" targets.
2018-08-20 17:42:28 -04:00
..
docs Branch with the meson build-system (#8467) 2018-08-10 12:52:09 -05:00
env bugfix: cc handles spaces in flag variables properly 2018-08-09 08:00:22 -07:00
external pytest: add _pytest/_version.py and LICENSE 2018-06-20 14:35:10 -05:00
llnl install_tree: symlink handling and add 'ignore' option (#9019) 2018-08-17 22:08:38 -04:00
spack Even better Makefile target parsing (#8819) 2018-08-20 17:42:28 -04:00