perl: only run finalize hook when necessary
authorDanomi Manchego <danomimanchego123@gmail.com>
Tue, 21 Jul 2015 01:59:24 +0000 (21:59 -0400)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 21 Jul 2015 21:42:36 +0000 (23:42 +0200)
commitc30dd5de91404744bbe2a5ffece0d00ce68f1f64
treebd02ddc3d653706bd78f7cd4902e7f97657f11ca
parent751f6f5af501983cc2b05fc9519fb0b1c7b57733
perl: only run finalize hook when necessary

The PERL_FINALIZE_TARGET always runs, even if perl is not installed.
This results in errors from the find command when it fails to find
anything, even when doing "make -s":

>>>   Finalizing target directory
find: `...../output/target/usr/lib/perl5/': No such file or directory
find: `...../output/target/usr/lib/perl5/': No such file or directory
find: `...../output/target/usr/lib/perl5/': No such file or directory

This is not helpful for projects that do not select Perl.  Silence this
by making the hook conditional on package selection.

Signed-off-by: Danomi Manchego <danomimanchego123@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/perl/perl.mk