summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-15 16:54:40 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-20 21:50:45 +0200
commit0ff64a71c493f41b23ddd052a465c3d40c3264f2 (patch)
tree288c33db8f4a697800429349ab9dfa33e8f38da8 /Makefile.SH
parent417de989d3cb17f83d8a6af00ff4b171a8682c8c (diff)
downloadperl-0ff64a71c493f41b23ddd052a465c3d40c3264f2.tar.gz
In the Makefile, generate the value of shextract programmatically.
shextract lists the files generated by shell scripts named *.SH which need deleting. Instead of maintaining it by hand, generate it in Makefile.SH from the list of *.SH files. This indirectly eliminates the last reference to F<makedir>. makedir.SH was eliminated by commit ebca06e95b02d1a8 and the reference to makedir.SH in Makefile.SH eliminated by commit 847471027aa42997 (both Sept 2009), but that commit missed that the reference to makedir a few lines later was related.
Diffstat (limited to 'Makefile.SH')
-rwxr-xr-xMakefile.SH16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 720075e391..91ad66ae51 100755
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -443,16 +443,24 @@ xconfig.h: config_h.SH Cross/config-\$(CROSS_NAME).sh
;;
esac
+SH='Makefile.SH cflags.SH config_h.SH makedepend.SH myconfig.SH pod/Makefile.SH'
+shextract=`echo $SH | sed -e s/\\\.SH//g -e s/_/./g`
+
+
## In the following dollars and backticks do not need the extra backslash.
-$spitshell >>$Makefile <<'!NO!SUBS!'
+$spitshell >>$Makefile <<!GROK!THIS!
-private = preplibrary $(CONFIGPM) $(CONFIGPOD) lib/ExtUtils/Miniperl.pm git_version.h lib/buildcustomize.pl
+private = preplibrary \$(CONFIGPM) \$(CONFIGPOD) lib/ExtUtils/Miniperl.pm git_version.h lib/buildcustomize.pl
# Files to be built with variable substitution before miniperl
# is available.
-sh = Makefile.SH cflags.SH config_h.SH makedepend.SH myconfig.SH pod/Makefile.SH
+sh = $SH
-shextract = Makefile cflags config.h makedepend makedir myconfig pod/Makefile
+shextract = $shextract
+!GROK!THIS!
+
+## In the following dollars and backticks do not need the extra backslash.
+$spitshell >>$Makefile <<'!NO!SUBS!'
addedbyconf = UU $(shextract) pstruct