2014-07-04 05:18:57 +02:00
|
|
|
# This makefile simplifies perl module builds.
|
|
|
|
#
|
|
|
|
|
2018-09-23 21:36:37 +02:00
|
|
|
ifeq ($(origin PERL_INCLUDE_DIR),undefined)
|
|
|
|
PERL_INCLUDE_DIR:=$(dir $(lastword $(MAKEFILE_LIST)))
|
|
|
|
endif
|
|
|
|
|
|
|
|
include $(PERL_INCLUDE_DIR)/perlver.mk
|
2018-08-08 00:00:19 +02:00
|
|
|
|
|
|
|
ifneq ($(PKG_NAME),perl)
|
|
|
|
PKG_VERSION:=$(PKG_VERSION)+perl$(PERL_VERSION2)
|
|
|
|
endif
|
|
|
|
|
|
|
|
PERL_VERSION:=$(PERL_VERSION2)
|
2015-06-09 21:31:26 +02:00
|
|
|
|
2014-07-04 05:18:57 +02:00
|
|
|
# Build environment
|
2017-01-10 15:02:50 +01:00
|
|
|
HOST_PERL_PREFIX:=$(STAGING_DIR_HOSTPKG)/usr
|
2015-03-12 18:23:49 +01:00
|
|
|
ifneq ($(CONFIG_USE_GLIBC),)
|
2014-07-19 06:00:58 +02:00
|
|
|
EXTRA_LIBS:=bsd
|
|
|
|
EXTRA_LIBDIRS:=$(STAGING_DIR)/lib
|
|
|
|
endif
|
2018-08-08 00:00:19 +02:00
|
|
|
PERL_CMD:=$(STAGING_DIR_HOSTPKG)/usr/bin/perl$(PERL_VERSION3)
|
2014-07-04 05:18:57 +02:00
|
|
|
|
2015-05-22 22:33:29 +02:00
|
|
|
MOD_CFLAGS_PERL:=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(TARGET_CFLAGS) $(TARGET_CPPFLAGS)
|
2015-02-07 22:22:50 +01:00
|
|
|
ifdef CONFIG_PERL_THREADS
|
|
|
|
MOD_CFLAGS_PERL+= -D_REENTRANT -D_GNU_SOURCE
|
|
|
|
endif
|
2023-05-19 15:03:09 +02:00
|
|
|
ifdef CONFIG_USE_MUSL
|
|
|
|
MOD_CFLAGS_PERL+= -D_LARGEFILE64_SOURCE
|
|
|
|
endif
|
2015-02-07 22:22:50 +01:00
|
|
|
|
2014-07-04 05:18:57 +02:00
|
|
|
# Module install prefix
|
2015-06-09 21:31:26 +02:00
|
|
|
PERL_SITELIB:=/usr/lib/perl5/$(PERL_VERSION)
|
2014-08-20 00:31:31 +02:00
|
|
|
PERL_TESTSDIR:=/usr/share/perl/perl-tests
|
|
|
|
PERLBASE_TESTSDIR:=/usr/share/perl/perlbase-tests
|
|
|
|
PERLMOD_TESTSDIR:=/usr/share/perl/perlmod-tests
|
2014-07-04 05:18:57 +02:00
|
|
|
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
FLOCK:=$(STAGING_DIR_HOST)/bin/flock
|
|
|
|
|
2014-08-02 23:23:41 +02:00
|
|
|
define perlmod/host/relink
|
|
|
|
rm -f $(1)/Makefile.aperl
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
($(FLOCK) -w 900 9 || { echo perlmod/host/relink: failed to acquire lock; exit 1; }; \
|
|
|
|
$(MAKE) -C $(1) perl && \
|
|
|
|
$(INSTALL_BIN) $(1)/perl $(PERL_CMD) && \
|
|
|
|
$(INSTALL_BIN) $(1)/perl $(STAGING_DIR_HOSTPKG)/usr/bin/perl \
|
|
|
|
) 9> $(TMP_DIR)/.perlmod-perl.flock
|
2014-08-02 23:23:41 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define perlmod/host/Configure
|
|
|
|
(cd $(HOST_BUILD_DIR); \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
$(FLOCK) -s -w 300 9 || { echo perlmod/host/Configure: failed to acquire lock; exit 1; }; \
|
2014-08-02 23:23:41 +02:00
|
|
|
PERL_MM_USE_DEFAULT=1 \
|
|
|
|
$(2) \
|
|
|
|
$(PERL_CMD) Makefile.PL \
|
|
|
|
$(1) \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
) 9> $(TMP_DIR)/.perlmod-perl.flock;
|
2014-08-02 23:23:41 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define perlmod/host/Compile
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
($(FLOCK) -s -w 300 9 || { echo perlmod/host/Compile: failed to acquire lock; exit 1; }; \
|
2014-08-02 23:23:41 +02:00
|
|
|
$(2) \
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
|
|
|
$(1) \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
install \
|
|
|
|
) 9> $(TMP_DIR)/.perlmod-perl.flock
|
2014-08-02 23:23:41 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define perlmod/host/Install
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
($(FLOCK) -s -w 300 9 || { echo perlmod/host/Install: failed to acquire lock; exit 1; }; \
|
2014-08-02 23:23:41 +02:00
|
|
|
$(2) \
|
|
|
|
$(MAKE) -C $(HOST_BUILD_DIR) \
|
|
|
|
$(1) \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
install \
|
|
|
|
) 9> $(TMP_DIR)/.perlmod-perl.flock
|
2014-08-02 23:23:41 +02:00
|
|
|
$(call perlmod/host/relink,$(HOST_BUILD_DIR))
|
|
|
|
endef
|
|
|
|
|
2014-07-04 05:18:57 +02:00
|
|
|
define perlmod/Configure
|
2015-05-02 16:29:52 +02:00
|
|
|
(cd $(if $(3),$(3),$(PKG_BUILD_DIR)); \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
$(FLOCK) -s -w 300 9 || { echo perlmod/Configure: failed to acquire lock; exit 1; }; \
|
2018-01-26 02:34:32 +01:00
|
|
|
(echo -e 'use Config;\n\n$$$${tied %Config::Config}{cpprun}="$(GNU_TARGET_NAME)-cpp -E";\n' ; cat Makefile.PL) | \
|
|
|
|
PERL_MM_USE_DEFAULT=1 \
|
|
|
|
$(2) \
|
|
|
|
$(PERL_CMD) -I. -- - \
|
2014-07-04 05:18:57 +02:00
|
|
|
$(1) \
|
2014-07-19 05:57:42 +02:00
|
|
|
AR=ar \
|
|
|
|
CC=$(GNU_TARGET_NAME)-gcc \
|
2015-02-07 22:22:50 +01:00
|
|
|
CCFLAGS="$(MOD_CFLAGS_PERL)" \
|
2014-07-19 05:57:42 +02:00
|
|
|
CCCDLFLAGS=-fPIC \
|
|
|
|
CCDLFLAGS=-Wl,-E \
|
|
|
|
DLEXT=so \
|
|
|
|
DLSRC=dl_dlopen.xs \
|
|
|
|
EXE_EXT=" " \
|
|
|
|
FULL_AR=$(GNU_TARGET_NAME)-ar \
|
|
|
|
LD=$(GNU_TARGET_NAME)-gcc \
|
2015-05-02 16:42:07 +02:00
|
|
|
LDDLFLAGS="-shared -rdynamic $(TARGET_LDFLAGS)" \
|
2014-07-19 06:00:58 +02:00
|
|
|
LDFLAGS="$(EXTRA_LIBDIRS:%=-L%) $(EXTRA_LIBS:%=-l%) " \
|
2014-07-19 05:57:42 +02:00
|
|
|
LIBC=" " \
|
|
|
|
LIB_EXT=.a \
|
|
|
|
OBJ_EXT=.o \
|
|
|
|
OSNAME=linux \
|
|
|
|
OSVERS=2.4.30 \
|
|
|
|
RANLIB=: \
|
|
|
|
SITELIBEXP=" " \
|
|
|
|
SITEARCHEXP=" " \
|
|
|
|
SO=so \
|
|
|
|
VENDORARCHEXP=" " \
|
|
|
|
VENDORLIBEXP=" " \
|
|
|
|
SITEPREFIX=/usr \
|
|
|
|
INSTALLPRIVLIB=$(PERL_SITELIB) \
|
2014-07-04 05:18:57 +02:00
|
|
|
INSTALLSITELIB=$(PERL_SITELIB) \
|
2014-07-19 05:57:42 +02:00
|
|
|
INSTALLVENDORLIB=" " \
|
|
|
|
INSTALLARCHLIB=$(PERL_SITELIB) \
|
2014-07-04 05:18:57 +02:00
|
|
|
INSTALLSITEARCH=$(PERL_SITELIB) \
|
2014-07-19 05:57:42 +02:00
|
|
|
INSTALLVENDORARCH=" " \
|
|
|
|
INSTALLBIN=/usr/bin \
|
|
|
|
INSTALLSITEBIN=/usr/bin \
|
|
|
|
INSTALLVENDORBIN=" " \
|
|
|
|
INSTALLSCRIPT=/usr/bin \
|
|
|
|
INSTALLSITESCRIPT=/usr/bin \
|
|
|
|
INSTALLVENDORSCRIPT=" " \
|
|
|
|
INSTALLMAN1DIR=/usr/man/man1 \
|
|
|
|
INSTALLSITEMAN1DIR=/usr/man/man1 \
|
|
|
|
INSTALLVENDORMAN1DIR=" " \
|
|
|
|
INSTALLMAN3DIR=/usr/man/man3 \
|
|
|
|
INSTALLSITEMAN3DIR=/usr/man/man3 \
|
|
|
|
INSTALLVENDORMAN3DIR=" " \
|
|
|
|
LINKTYPE=dynamic \
|
2014-07-04 05:18:57 +02:00
|
|
|
DESTDIR=$(PKG_INSTALL_DIR) \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
) 9> $(TMP_DIR)/.perlmod-perl.flock
|
2018-01-26 02:34:32 +01:00
|
|
|
sed -i -e 's!^PERL_INC = .*!PERL_INC = $(STAGING_DIR)/usr/lib/perl5/$(PERL_VERSION)/CORE/!' $(if $(3),$(3),$(PKG_BUILD_DIR))/Makefile
|
2014-07-04 05:18:57 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define perlmod/Compile
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
($(FLOCK) -s -w 300 9 || { echo perlmod/Compile: failed to acquire lock; exit 1; }; \
|
2014-07-04 05:18:57 +02:00
|
|
|
PERL5LIB=$(PERL_LIB) \
|
|
|
|
$(2) \
|
2015-05-02 16:47:03 +02:00
|
|
|
$(MAKE) -C $(if $(3),$(3),$(PKG_BUILD_DIR)) \
|
2014-07-04 05:18:57 +02:00
|
|
|
$(1) \
|
perl: perlmod.mk: use flock when hostpkg/perl used
Avoid parallel relinking and usage of the host perl binary by wrapping
its usage around flock calls.
Sometimes, two packages will try to relink the static host perl binary
at the same time. Neither of them will have the other's module linked
in, and one of them will unavoidably clobber the other one's binary.
This will lead to errors when a package will not be able to find a
module that was supposed to be installed.
To fix that, an exclusive flock is used when relinking, with a 900
seconds timeout to avoid locking up the build process forever.
This is not enough because the binary may be concurrently used to build
another module package; perl is used in Configure, Compile, and Install
procedures. If timing is right, a package will fail with a "permission
denied" error.
So a shared flock call is added in Configure, Compile, and Install
definitions for host and target, with a shorter, 300 seconds timeout.
Signed-off-by: Eneas U de Queiroz <cotequeiroz@gmail.com>
2021-08-16 16:07:35 +02:00
|
|
|
install \
|
|
|
|
) 9> $(TMP_DIR)/.perlmod-perl.flock
|
2014-07-04 05:18:57 +02:00
|
|
|
endef
|
|
|
|
|
2014-08-20 00:31:31 +02:00
|
|
|
define perlmod/Install/NoStrip
|
2014-07-04 05:18:57 +02:00
|
|
|
$(INSTALL_DIR) $(strip $(1))$(PERL_SITELIB)
|
|
|
|
(cd $(PKG_INSTALL_DIR)$(PERL_SITELIB) && \
|
|
|
|
rsync --relative -rlHp --itemize-changes \
|
|
|
|
--exclude=\*.pod \
|
|
|
|
--exclude=.packlist \
|
|
|
|
$(addprefix --exclude=/,$(strip $(3))) \
|
|
|
|
--prune-empty-dirs \
|
|
|
|
$(strip $(2)) $(strip $(1))$(PERL_SITELIB))
|
|
|
|
|
|
|
|
chmod -R u+w $(strip $(1))$(PERL_SITELIB)
|
2014-08-20 00:31:31 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
|
2017-01-03 06:55:17 +01:00
|
|
|
define perlmod/_DoStrip
|
2014-07-04 05:18:57 +02:00
|
|
|
@echo "---> Stripping modules in: $(strip $(1))$(PERL_SITELIB)"
|
|
|
|
find $(strip $(1))$(PERL_SITELIB) -name \*.pm -or -name \*.pl | \
|
|
|
|
xargs -r sed -i \
|
2014-08-21 16:31:17 +02:00
|
|
|
-e '/^=\(head\|pod\|item\|over\|back\|encoding\|begin\|end\|for\)/,/^=cut/d' \
|
|
|
|
-e '/^=\(head\|pod\|item\|over\|back\|encoding\|begin\|end\|for\)/,$$$$d' \
|
2014-07-04 05:18:57 +02:00
|
|
|
-e '/^#$$$$/d' \
|
|
|
|
-e '/^#[^!"'"'"']/d'
|
|
|
|
endef
|
2014-08-20 00:31:31 +02:00
|
|
|
|
2017-01-03 06:55:17 +01:00
|
|
|
define perlmod/Install
|
|
|
|
$(call perlmod/Install/NoStrip,$(1),$(2),$(3))
|
|
|
|
|
|
|
|
$(if $(CONFIG_PERL_NOCOMMENT),$(if $(PKG_LEAVE_COMMENTS),,$(call perlmod/_DoStrip,$(1),$(2),$(3))))
|
|
|
|
endef
|
|
|
|
|
2014-08-20 00:31:31 +02:00
|
|
|
# You probably don't want to use this directly. Look at perlmod/InstallTests
|
|
|
|
define perlmod/_InstallTests
|
|
|
|
$(INSTALL_DIR) $(strip $(1))
|
|
|
|
(cd $(PKG_BUILD_DIR)/$(2) && \
|
|
|
|
rsync --relative -rlHp --itemize-changes \
|
|
|
|
--exclude=.packlist \
|
|
|
|
--prune-empty-dirs \
|
|
|
|
$(strip $(3)) $(strip $(1)))
|
|
|
|
|
|
|
|
chmod -R u+w $(strip $(1))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define perlmod/InstallBaseTests
|
|
|
|
$(if $(CONFIG_PERL_TESTS),$(call perlmod/_InstallTests,$(1)$(PERL_TESTSDIR),,$(2)))
|
|
|
|
endef
|
|
|
|
|
|
|
|
define perlmod/InstallTests
|
|
|
|
$(if $(CONFIG_PERL_TESTS),$(call perlmod/_InstallTests,$(1)$(PERL_TESTSDIR),$(2),$(3)))
|
|
|
|
endef
|