summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-07-30 13:45:27 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-07-30 13:45:27 +0000
commita40613e1fa44a8ed3c85825f5c5523f641e43606 (patch)
tree078e7d6f97382281337e5ce5f70a0c126979c38f /Makefile.SH
parent6c31a68f81f6c458bfc3606be37d2455d4cf0a12 (diff)
downloadperl-a40613e1fa44a8ed3c85825f5c5523f641e43606.tar.gz
Doubly guard against invoking CPAN if no extras defined,
pointed out by H. Merijn Brand. p4raw-id: //depot/perl@11502
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH18
1 files changed, 6 insertions, 12 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 9262cf82c1..2de7fe6c21 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -667,20 +667,14 @@ extra.pods: miniperl
-@rm -f pod/perlvms.pod
-@test -f vms/perlvms.pod && cd pod && $(LNS) ../vms/perlvms.pod perlvms.pod && cd .. && echo "pod/perlvms.pod" >> extra.pods
-extras.prep: perl
- @echo "CPAN needs to be configured..."
- @echo
- -@test -f extras.lst || touch extras.lst
+extras.make: perl
+ -@test -s extras.lst && $(LDLIBPTH) PATH=`pwd`:${PATH} PERL5LIB=`pwd`/lib ./perl -Ilib -MCPAN -e '@ARGV&&make(@ARGV)' `cat extras.lst`
-extras.make: extras.prep
- $(LDLIBPTH) PATH=`pwd`:${PATH} PERL5LIB=`pwd`/lib ./perl -Ilib -MCPAN -e 'make(@ARGV)' `cat extras.lst`
+extras.test: perl
+ -@test -s extras.lst && $(LDLIBPTH) PATH=`pwd`:${PATH} PERL5LIB=`pwd`/lib ./perl -Ilib -MCPAN -e '@ARGV&&test(@ARGV)' `cat extras.lst`
-extras.test: extras.prep
- $(LDLIBPTH) PATH=`pwd`:${PATH} PERL5LIB=`pwd`/lib ./perl -Ilib -MCPAN -e 'test(@ARGV)' `cat extras.lst`
-
-extras.install: extras.prep
- -@test -f extras.lst || touch extras.lst
- $(LDLIBPTH) PATH=`pwd`:${PATH} PERL5LIB=`pwd`/lib ./perl -Ilib -MCPAN -e 'install(@ARGV)' `cat extras.lst`
+extras.install: perl
+ -@test -s extras.lst && $(LDLIBPTH) PATH=`pwd`:${PATH} PERL5LIB=`pwd`/lib ./perl -Ilib -MCPAN -e '@ARGV&&install(@ARGV)' `cat extras.lst`
.PHONY: install install-strip install-all install-verbose install-silent \
no-install install.perl install.man installman install.html installhtml