1 case $PERL_CONFIG_SH in
3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
9 echo "Can't find config.sh."; exit 1
14 : This forces SH files to create target in same directory as SH file.
15 : This is so that make depend always knows where to find SH derivatives.
17 */Makefile.SH) cd `expr X$0 : 'X\(.*\)/'` ;;
21 *) if test -d utils; then cd utils
22 else echo "Can't figure out where to write output."; exit 1
27 echo "Extracting utils/Makefile (with variable substitutions)"
29 cat >Makefile <<!GROK!THIS!
33 RUN = $run # Used mainly cross-compilation setups.
37 cat >>Makefile <<'!NO!SUBS!'
39 # Files to be built with variable substitution after miniperl is
40 # available. Dependencies handled manually below (for now).
42 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
43 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
44 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
49 $(RUN) $(PERL) -I../lib $@.PL
51 c2ph: c2ph.PL ../config.sh
53 cpan: cpan.PL ../config.sh
55 config_data: config_data.PL ../config.sh
57 corelist: corelist.PL ../config.sh
59 h2ph: h2ph.PL ../config.sh
61 h2xs: h2xs.PL ../config.sh
63 instmodsh: instmodsh.PL ../config.sh
65 perlbug: perlbug.PL ../config.sh ../patchlevel.h
67 perldoc: perldoc.PL ../config.sh
69 perlivp: perlivp.PL ../config.sh
71 prove: prove.PL ../config.sh
73 ptar: ptar.PL ../config.sh
75 ptardiff: ptardiff.PL ../config.sh
77 cpanp-run-perl: cpanp-run-perl.PL ../config.sh
79 cpanp: cpanp.PL ../config.sh
81 cpan2dist: cpan2dist.PL ../config.sh
83 pl2pm: pl2pm.PL ../config.sh
85 shasum: shasum.PL ../config.sh
87 splain: splain.PL ../config.sh ../lib/diagnostics.pm
89 dprofpp: dprofpp.PL ../config.sh
91 libnetcfg: libnetcfg.PL ../config.sh
93 piconv: piconv.PL ../config.sh
95 enc2xs: enc2xs.PL ../config.sh
97 xsubpp: xsubpp.PL ../config.sh
102 rm -rf $(plextract) pstruct $(plextractexe)
103 rm -f ../t/_h2ph_pre.ph
116 $ln Makefile ../Makefile