diff options
| author | Philip Prindeville <philipp@redfish-solutions.com> | 2018-09-23 13:36:37 -0600 |
|---|---|---|
| committer | Philip Prindeville <philipp@redfish-solutions.com> | 2018-09-23 14:19:51 -0600 |
| commit | a5a4eafc930407dc082432acf50721598af84939 (patch) | |
| tree | 8503b709319d8c2c3a726ce8197cece87597a28d | |
| parent | 53a912201c74c87d088fa29421719e49ec424365 (diff) | |
perlmod: fix ability to build module out-of-feed
Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
| -rw-r--r-- | lang/perl/Makefile | 2 | ||||
| -rw-r--r-- | lang/perl/perlmod.mk | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lang/perl/Makefile b/lang/perl/Makefile index 86a4351ac..b92b00279 100644 --- a/lang/perl/Makefile +++ b/lang/perl/Makefile @@ -11,7 +11,7 @@ include perlver.mk PKG_NAME:=perl PKG_VERSION:=$(PERL_VERSION) -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE_URL:=\ https://cpan.metacpan.org/src/5.0 \ diff --git a/lang/perl/perlmod.mk b/lang/perl/perlmod.mk index d00a8c42e..8a9509915 100644 --- a/lang/perl/perlmod.mk +++ b/lang/perl/perlmod.mk @@ -1,7 +1,11 @@ # This makefile simplifies perl module builds. # -include ../perl/perlver.mk +ifeq ($(origin PERL_INCLUDE_DIR),undefined) + PERL_INCLUDE_DIR:=$(dir $(lastword $(MAKEFILE_LIST))) +endif + +include $(PERL_INCLUDE_DIR)/perlver.mk ifneq ($(PKG_NAME),perl) PKG_VERSION:=$(PKG_VERSION)+perl$(PERL_VERSION2) |
