tools/elfutils: override SUBDIRS variable of Makefile
authorMichael Pratt <mcpratt@pm.me>
Sun, 7 Apr 2024 19:28:03 +0000 (15:28 -0400)
committerRobert Marko <robimarko@gmail.com>
Thu, 25 Apr 2024 19:33:51 +0000 (21:33 +0200)
commit7a4df7825eae83650c42ef9839f985f6fdc87b09
tree6d39e780b5225e9869aff26115206adf7e37380c
parentb6f025b42429ec809afeb0956b35535c248b6c1b
tools/elfutils: override SUBDIRS variable of Makefile

Instead of editing the SUBDIRS variable with a patch, it can be overriden
at the end of the command line when invoking Make.

This tool has a series of recursive Makefiles in each subdirectory,
therefore SUBDIRS is set to a pattern of Make functions so that the result
is variable depending on the current subdirectory that Make is being
invoked in.

It's not necessary to have gnulib-cache.m4 in EXTRA_DIST since we don't
need to re-import after packaging this in the SDK, so get rid of the
entire patch hunk for ./Makefile.am

Tested-by: Georgi Valkov <gvalkov@gmail.com> # MacOS
Signed-off-by: Michael Pratt <mcpratt@pm.me>
Signed-off-by: Tony Ambardar <itugrok@yahoo.com>
tools/elfutils/Makefile
tools/elfutils/patches/100-portability.patch