tools/Makefile: Drop the use of $(file ...)
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Sep 2020 09:24:20 +0000 (10:24 +0100)
committerWei Liu <wl@xen.org>
Mon, 14 Sep 2020 09:49:18 +0000 (09:49 +0000)
commitd16467b18e0c0a77743c3111bed2a833a77fbfe7
tree4f168f6c9ab2cf33ef8648badc94d0ea14777539
parent4f9a6165604b89da592860d9821b920eed79f5a2
tools/Makefile: Drop the use of $(file ...)

It is only available in make 4.0 and later, and not for example in CentOS 7.

Rewrite the logic to use echo and shell redirection, using a single capture
group to avoid having 12 different processes in quick succession each
appending one line to the file.

Fixes: 52dbd6f07cea7a ("tools: generate pkg-config files from make variables")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Wei Liu <wl@xen.org>
tools/Rules.mk