summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJess Robinson <castaway@desert-island.me.uk>2013-01-18 15:54:51 +0000
committerBrian Fraser <fraserbn@gmail.com>2014-01-22 13:08:20 -0300
commita9bf3e8fd938d6a8e5f7b27e07e1afb0ffdab7b5 (patch)
tree58c3cf47924ee8cdc45d15760b6cf7933b5e69bd /Makefile.SH
parent9094a4e8ed4808e43506f9d7d78b4187fb8a88d6 (diff)
downloadperl-a9bf3e8fd938d6a8e5f7b27e07e1afb0ffdab7b5.tar.gz
Use HOST_PERL instead of built perl for perl installation
HOST_PERL is often set while cross compiling, so we can run the install from the host machine.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH39
1 files changed, 37 insertions, 2 deletions
diff --git a/Makefile.SH b/Makefile.SH
index be893ecd1e..cd13ef6fdf 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -1065,20 +1065,52 @@ no_install no-install: install-notify
install: install-all
!NO!SUBS!
+
for name in all notify silent strip verbose; do
flags="--$name";
- $spitshell >>$Makefile <<EOT
+ if test "X$hostperl" != X; then
+ $spitshell >>$Makefile <<EOT
+
+install_$name install-$name: \$(INSTALL_DEPENDENCE) installperl all installman
+ \$(HOST_PERL) installperl --destdir=\$(DESTDIR) ${flags%--all} \$(INSTALLFLAGS) \$(STRIPFLAGS)
+ \$(HOST_PERL) installman --destdir=\$(DESTDIR) ${flags%--all}
+EOT
+ else
+ $spitshell >>$Makefile <<EOT
install_$name install-$name: \$(INSTALL_DEPENDENCE) installperl all installman
\$(RUN_PERL) installperl --destdir=\$(DESTDIR) ${flags%--all} \$(INSTALLFLAGS) \$(STRIPFLAGS)
\$(RUN_PERL) installman --destdir=\$(DESTDIR) ${flags%--all}
EOT
+ fi
test $name = notify || echo ' -@test ! -s extras.lst || PATH="`pwd`:${PATH}" PERL5LIB="`pwd`/lib" $(RUN_PERL) -Ilib -MCPAN -e '\''@ARGV&&install(@ARGV)'\'' `cat extras.lst`' >>$Makefile
done
-$spitshell >>$Makefile <<'!NO!SUBS!'
+if test "X$hostperl" != X; then
+ $spitshell >>$Makefile <<'!NO!SUBS!'
+install.perl: $(INSTALL_DEPENDENCE) installperl
+ $(HOST_PERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
+ -@test ! -s extras.lst || $(MAKE) extras.install
+
+install.man: all installman
+ $(HOST_PERL) installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
+# XXX Experimental. Hardwired values, but useful for testing.
+# Eventually Configure could ask for some of these values.
+install.html: all installhtml
+ -@test -f README.vms && cd vms && $(LNS) ../README.vms README_vms.pod && cd ..
+ $(HOST_PERL) installhtml \
+ --podroot=. --podpath=. --recurse \
+ --htmldir=$(privlib)/html \
+ --htmlroot=$(privlib)/html \
+ --splithead=pod/perlipc \
+ --splititem=pod/perlfunc \
+ --ignore=Porting/Maintainers.pm,Porting/pumpkin.pod,Porting/repository.pod \
+ --verbose
+!NO!SUBS!
+else
+ $spitshell >>$Makefile <<'!NO!SUBS!'
install.perl: $(INSTALL_DEPENDENCE) installperl
$(RUN_PERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
-@test ! -s extras.lst || PATH="`pwd`:\${PATH}" PERL5LIB="`pwd`/lib" \$(RUN_PERL) -Ilib -MCPAN -e '@ARGV&&install(@ARGV)' `cat extras.lst`
@@ -1098,7 +1130,10 @@ install.html: all installhtml
--splititem=pod/perlfunc \
--ignore=Porting/Maintainers.pm,Porting/pumpkin.pod,Porting/repository.pod \
--verbose
+!NO!SUBS!
+fi
+$spitshell >>$Makefile <<'!NO!SUBS!'
# I now supply perly.c with the kits, so the following section is
# used only if you force bison to run by saying