build: package-ipkg: avoid calling wildcard twice
authorEneas U de Queiroz <cotequeiroz@gmail.com>
Thu, 20 Feb 2020 21:29:02 +0000 (18:29 -0300)
committerJo-Philipp Wich <jo@mein.io>
Fri, 19 Mar 2021 10:48:28 +0000 (11:48 +0100)
commit33df82be36cb44d61ab0285796e78c62fe1fe787
tree3084df917feb6fc0e0c1dfd88e41bb7f98730da4
parent34023344134a3abedcb892675bb2d75ec7b104b2
build: package-ipkg: avoid calling wildcard twice

Instead of calling $(wildcard) to check if the removal list is empty,
then calling it again to actually remove the files, define a function so
that the arguments are expanded only once when it gets called.

Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
(cherry picked from commit 40acc13ca72ca7d2815dc5d94549d5dc48e16e98)
include/package-ipkg.mk