Makefile.PL (PDL-2.082) | : | Makefile.PL (PDL-2.083) | ||
---|---|---|---|---|
skipping to change at line 262 | skipping to change at line 262 | |||
# Extra build target to build the doc database | # Extra build target to build the doc database | |||
sub MY::postamble { | sub MY::postamble { | |||
my ($self) = @_; | my ($self) = @_; | |||
package MY; | package MY; | |||
my $text = | my $text = | |||
' | ' | |||
doctest :: | doctest :: | |||
cd Doc && make test | cd Doc && make test | |||
$(NOECHO) $(ECHO) "doctest: Building PDL documentation database in blib . .." | $(NOECHO) $(ECHO) "doctest: Building PDL documentation database in blib . .." | |||
$(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl | $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl | |||
%HTML% $(NOECHO) $(ECHO) "doctest: Building PDL documentation web pages in blib | ||||
..." | ||||
%HTML% $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)mkhtmldoc.pl | ||||
doc_site_install :: doc_pdldoc_install | doc_site_install :: doc_pdldoc_install | |||
doc_pdldoc_install :: pure_install # needs installed .../PDL dir to exist | doc_pdldoc_install :: pure_install # needs installed .../PDL dir to exist | |||
$(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation database ..." | $(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation database ..." | |||
$(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLSITEA RCH)" | $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLSITEA RCH)" | |||
%HTML% $(NOECHO) $(ECHO) "doc_site_install: Building PDL documentation web pages | ||||
..." | ||||
%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLSITEARCH)$( | ||||
DFSEP)PDL" | ||||
doc_vendor_install :: | doc_vendor_install :: | |||
$(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation databas e ..." | $(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation databas e ..." | |||
$(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLVENDO RARCH)" | $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLVENDO RARCH)" | |||
%HTML% $(NOECHO) $(ECHO) "doc_vendor_install: Building PDL documentation web pag | ||||
es ..." | ||||
%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLVENDORARCH) | ||||
$(DFSEP)PDL" | ||||
doc_perl_install :: | doc_perl_install :: | |||
$(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation database ..." | $(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation database ..." | |||
$(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLARCHL IB)" | $(NOECHO) $(PERLRUNINST) Doc$(DFSEP)scantree.pl "$(DESTDIR)$(INSTALLARCHL IB)" | |||
%HTML% $(NOECHO) $(ECHO) "doc_perl_install: Building PDL documentation web pages | ||||
..." | ||||
%HTML% $(NOECHO) $(PERL) Doc$(DFSEP)mkhtmldoc.pl "$(DESTDIR)$(INSTALLARCHLIB)$(D | ||||
FSEP)PDL" | ||||
'; | '; | |||
if(defined $PDL::Config{HTML_DOCS} && !$PDL::Config{HTML_DOCS}){ | ||||
$text=~ s/\%HTML\%[^\n]*\n//og; # Remove %HTML% lines | ||||
} else { | ||||
$text=~ s/\%HTML\%//og; # Remove just %HTML% markers | ||||
} | ||||
# Here, `pdl.c` is used directly because some makes (e.g., on Solaris) do not | # Here, `pdl.c` is used directly because some makes (e.g., on Solaris) do not | |||
# support the `$<` variable in explicit rules | # support the `$<` variable in explicit rules | |||
$text .= <<EOT if $^O !~ /MSWin/; | $text .= <<EOT if $^O !~ /MSWin/; | |||
pdl$::Config{exe_ext} : pdl.c | pdl$::Config{exe_ext} : pdl.c | |||
\$(CC) \$(CFLAGS) \$(LDFLAGS) \$(CCCDLFLAGS) pdl.c -o \$\@ | \$(CC) \$(CFLAGS) \$(LDFLAGS) \$(CCCDLFLAGS) pdl.c -o \$\@ | |||
EOT | EOT | |||
$text .= << 'EOT' if $^O =~ /MSWin/; | $text .= << 'EOT' if $^O =~ /MSWin/; | |||
DISTWIN32NAME=$(DISTVNAME)-win32 | DISTWIN32NAME=$(DISTVNAME)-win32 | |||
End of changes. 5 change blocks. | ||||
21 lines changed or deleted | 0 lines changed or added |