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)
committerPetr Štetiar <ynezz@true.cz>
Sat, 11 Jul 2020 11:33:28 +0000 (13:33 +0200)
commit40acc13ca72ca7d2815dc5d94549d5dc48e16e98
tree906c9beaf8066821c26da53b53e0b85c999d8ea4
parentdf09cc6ddb85aeaad616aba74810c4be44284fe7
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>
include/package-ipkg.mk