diff options
author | Nicolas R <atoomic@cpan.org> | 2017-11-08 10:18:51 -0700 |
---|---|---|
committer | Nicolas R <atoomic@cpan.org> | 2017-11-13 09:17:57 -0600 |
commit | 98acbca8e7bdb3b6a03a91dbebcd3b47300d85df (patch) | |
tree | 1c46be1ab3d802d0c3a0778590fb2c8b056a625e /Makefile.SH | |
parent | eaecde9a0a4918a42c66b153f8da8230a67b3ae5 (diff) | |
download | perl-98acbca8e7bdb3b6a03a91dbebcd3b47300d85df.tar.gz |
Makefile.SH: factorize install.html target
Avoid duplicate definition of install.man and install.html
targets. We could then use in a later commit a Configure option
to disable doc installation on demand.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-x | Makefile.SH | 43 |
1 files changed, 16 insertions, 27 deletions
diff --git a/Makefile.SH b/Makefile.SH index 38edeadbfe..57971292d7 100755 --- a/Makefile.SH +++ b/Makefile.SH @@ -1177,50 +1177,39 @@ EOT done if test "X$hostperl" != X; then + LOCAL_PERL='$(HOST_PERL)' $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 + LOCAL_PERL='$(RUN_PERL)' $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` +!NO!SUBS! +fi + +$spitshell >>$Makefile <<!GROK!THIS! install.man: all installman - $(RUN_PERL) installman --destdir=$(DESTDIR) $(INSTALLFLAGS) + ${LOCAL_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 .. - $(RUN_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 \ + -@test -f README.vms && cd vms && \$(LNS) ../README.vms README_vms.pod && cd .. + ${LOCAL_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! -fi +!GROK!THIS! $spitshell >>$Makefile <<'!NO!SUBS!' |