This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Remove unused "squatter" symbols; regen Configure.
[perl5.git] / Makefile.SH
index 7c542a6..ef1a0e2 100644 (file)
@@ -194,6 +194,10 @@ SHELL = $sh
 # how to tr(anslate) newlines
 TRNL = '$trnl'
 
+# not used by Makefile but by installperl;
+# mentioned here so that metaconfig picks it up
+INSTALL_USR_BIN_PERL = $installusrbinperl
+
 !GROK!THIS!
 
 ## In the following dollars and backticks do not need the extra backslash.
@@ -481,8 +485,16 @@ lib/re.pm: ext/re/re.pm
 
 $(plextract):  miniperl lib/Config.pm lib/re.pm
        $(LDLIBPTH) ./miniperl -Ilib $@.PL
-       
-install: all install.perl install.man
+
+extra.pods: perl
+       -@rm -f extra.pods
+       -@for x in `grep -l '^=[a-z]' README.*` ; do \
+           nx=`echo $$x | sed -e "s/README\.//"`; \
+           $(LNS) ../$$x "pod/perl"$$nx".pod" ; \
+           echo "pod/perl"$$nx".pod" >> extra.pods ; \
+       done
+
+install: all install.perl install.man extra.pods
 
 install.perl:  all installperl
        if [ -n "$(COMPILE)" ]; \
@@ -606,7 +618,8 @@ distclean:  clobber
 # Do not 'make _mopup' directly.
 _mopup:
        rm -f *$(OBJ_EXT) *$(LIB_EXT) all perlmain.c
-       rm -f perl.exp ext.libs
+       -@test -f extra.pods && rm -f `cat extra.pods`
+       -rm -f perl.exp ext.libs extra.pods
        -rm -f perl.export perl.dll perl.libexp perl.map perl.def
        -rm -f perl.loadmap miniperl.loadmap perl.prelmap miniperl.prelmap
        rm -f perl suidperl miniperl $(LIBPERL)