build: rework cloc recipe
authorAnthony PERARD <anthony.perard@citrix.com>
Fri, 18 Feb 2022 07:58:52 +0000 (08:58 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 07:58:52 +0000 (08:58 +0100)
commit83a0353f49373c58fb92fc74626d7ab13c0399a3
treea6cdb3069509ef057176a9211b30abb8e3d6df8d
parent14b9b35b4ea35835309d4a0d5a59cc3cbd7fdb82
build: rework cloc recipe

We are going to make other modifications to the cloc recipe, so this
patch prepare make those modification easier.

We replace the Makefile meta programming by just a shell script which
should be easier to read and is actually faster to execute.

Instead of looking for files in "$(BASEDIR)", we use "." which is give
the same result overall. We also avoid the need for a temporary file
as cloc can read the list of files from stdin.

No change intended to the output of `cloc`.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/Makefile