perl: Allow changing the default directory for perlmod/Compile
authorMarcel Denia <naoir@gmx.net>
Sat, 2 May 2015 14:47:03 +0000 (16:47 +0200)
committerMarcel Denia <naoir@gmx.net>
Wed, 27 May 2015 00:03:56 +0000 (02:03 +0200)
Signed-off-by: Marcel Denia <naoir@gmx.net>
lang/perl/perlmod.mk

index 68cb392a61576bb4716a53aa6b9cc69a10463954..6cc1e4ccc817e9eef7383d81078d3b193d24dd33 100644 (file)
@@ -108,7 +108,7 @@ endef
 define perlmod/Compile
        PERL5LIB=$(PERL_LIB) \
        $(2) \
-       $(MAKE) -C $(PKG_BUILD_DIR) \
+       $(MAKE) -C $(if $(3),$(3),$(PKG_BUILD_DIR)) \
                $(1) \
                install
 endef