summaryrefslogtreecommitdiff
path: root/utils/Makefile.SH
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2007-09-15 16:47:57 -0400
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-09-17 10:07:29 +0000
commit6d4b7d88eed49936ae16ecf02d5eb5b2cc716ea1 (patch)
treeebb471a724b48501acf4947245371ed9014bf1d8 /utils/Makefile.SH
parent2b3def87bfe260ad143467c9f351358fce35fd7b (diff)
downloadperl-6d4b7d88eed49936ae16ecf02d5eb5b2cc716ea1.tar.gz
Re: [PATCH] Cray XT4/Catamount build
Message-ID: <46EC7D3D.5010604@iki.fi> p4raw-id: //depot/perl@31878
Diffstat (limited to 'utils/Makefile.SH')
-rw-r--r--utils/Makefile.SH119
1 files changed, 119 insertions, 0 deletions
diff --git a/utils/Makefile.SH b/utils/Makefile.SH
new file mode 100644
index 0000000000..42a274ccc5
--- /dev/null
+++ b/utils/Makefile.SH
@@ -0,0 +1,119 @@
+case $PERL_CONFIG_SH in
+'')
+ if test -f config.sh; then TOP=.;
+ elif test -f ../config.sh; then TOP=..;
+ elif test -f ../../config.sh; then TOP=../..;
+ elif test -f ../../../config.sh; then TOP=../../..;
+ elif test -f ../../../../config.sh; then TOP=../../../..;
+ else
+ echo "Can't find config.sh."; exit 1
+ fi
+ . $TOP/config.sh
+ ;;
+esac
+: This forces SH files to create target in same directory as SH file.
+: This is so that make depend always knows where to find SH derivatives.
+case "$0" in
+*/Makefile.SH) cd `expr X$0 : 'X\(.*\)/'` ;;
+Makefile.SH) ;;
+*) case `pwd` in
+ */utils) ;;
+ *) if test -d utils; then cd utils
+ else echo "Can't figure out where to write output."; exit 1
+ fi;;
+ esac;;
+esac
+
+echo "Extracting utils/Makefile (with variable substitutions)"
+rm -f Makefile
+cat >Makefile <<!GROK!THIS!
+
+PERL = ../miniperl
+REALPERL = ../perl
+RUN = $run
+
+!GROK!THIS!
+
+cat >>Makefile <<'!NO!SUBS!'
+
+# Files to be built with variable substitution after miniperl is
+# available. Dependencies handled manually below (for now).
+
+pl = c2ph.PL config_data.PL corelist.PL cpan.PL h2ph.PL h2xs.PL instmodsh.PL perlbug.PL perldoc.PL perlivp.PL pl2pm.PL prove.PL ptar.PL ptardiff.PL cpanp-run-perl.PL cpanp.PL cpan2dist.PL shasum.PL splain.PL dprofpp.PL libnetcfg.PL piconv.PL enc2xs.PL xsubpp.PL
+plextract = c2ph config_data corelist cpan h2ph h2xs instmodsh perlbug perldoc perlivp pl2pm prove ptar ptardiff cpanp-run-perl cpanp cpan2dist shasum splain dprofpp libnetcfg piconv enc2xs xsubpp
+plextractexe = ./c2ph ./config_data ./corelist ./cpan ./h2ph ./h2xs ./instmodsh ./perlbug ./perldoc ./perlivp ./pl2pm ./prove ./ptar ./ptardiff ./cpanp-run-perl ./cpanp ./cpan2dist ./shasum ./splain ./dprofpp ./libnetcfg ./piconv ./enc2xs ./xsubpp
+
+all: $(plextract)
+
+$(plextract):
+ $(RUN) $(PERL) -I../lib $@.PL
+
+c2ph: c2ph.PL ../config.sh
+
+cpan: cpan.PL ../config.sh
+
+config_data: config_data.PL ../config.sh
+
+corelist: corelist.PL ../config.sh
+
+h2ph: h2ph.PL ../config.sh
+
+h2xs: h2xs.PL ../config.sh
+
+instmodsh: instmodsh.PL ../config.sh
+
+perlbug: perlbug.PL ../config.sh ../patchlevel.h
+
+perldoc: perldoc.PL ../config.sh
+
+perlivp: perlivp.PL ../config.sh
+
+prove: prove.PL ../config.sh
+
+ptar: ptar.PL ../config.sh
+
+ptardiff: ptardiff.PL ../config.sh
+
+cpanp-run-perl: cpanp-run-perl.PL ../config.sh
+
+cpanp: cpanp.PL ../config.sh
+
+cpan2dist: cpan2dist.PL ../config.sh
+
+pl2pm: pl2pm.PL ../config.sh
+
+shasum: shasum.PL ../config.sh
+
+splain: splain.PL ../config.sh ../lib/diagnostics.pm
+
+dprofpp: dprofpp.PL ../config.sh
+
+libnetcfg: libnetcfg.PL ../config.sh
+
+piconv: piconv.PL ../config.sh
+
+enc2xs: enc2xs.PL ../config.sh
+
+xsubpp: xsubpp.PL ../config.sh
+
+clean:
+
+realclean:
+ rm -rf $(plextract) pstruct $(plextractexe)
+ rm -f ../t/_h2ph_pre.ph
+
+clobber: realclean
+
+distclean: clobber
+
+veryclean: distclean
+ -rm -f *~ *.org
+!NO!SUBS!
+$eunicefix Makefile
+case `pwd` in
+*SH)
+ $rm -f ../Makefile
+ $ln Makefile ../Makefile
+ ;;
+esac
+rm -f $firstmakefile