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 # These use the Cwd extension. For statically-built perls, we
30 # need perl, not just miniperl.
32 define) perl="../miniperl" ;;
35 cat >Makefile <<!GROK!THIS!
36 # Generated from utils/Makefile.SH. The generated file is
37 # shipped with the source kit for systems such as win32
38 # which don't do .SH extraction.
42 RUN = $run # Used mainly cross-compilation setups.
46 cat >>Makefile <<'!NO!SUBS!'
48 # Files to be built with variable substitution after miniperl is
49 # available. Dependencies handled manually below (for now).
51 pl = c2ph.PL config_data.PL corelist.PL cpan.PL h2ph.PL h2xs.PL instmodsh.PL json_pp.PL perlbug.PL perldoc.PL perlivp.PL pl2pm.PL prove.PL ptar.PL ptardiff.PL ptargrep.PL shasum.PL splain.PL libnetcfg.PL piconv.PL enc2xs.PL xsubpp.PL pod2html.PL zipdetails.PL
52 plextract = c2ph config_data corelist cpan h2ph h2xs instmodsh json_pp perlbug perldoc perlivp pl2pm prove ptar ptardiff ptargrep shasum splain libnetcfg piconv enc2xs xsubpp pod2html zipdetails
53 plextractexe = ./c2ph ./config_data ./corelist ./cpan ./h2ph ./h2xs ./json_pp ./instmodsh ./perlbug ./perldoc ./perlivp ./pl2pm ./prove ./ptar ./ptardiff ./ptargrep ./shasum ./splain ./libnetcfg ./piconv ./enc2xs ./xsubpp ./pod2html ./zipdetails
58 $(RUN) $(PERL) -I../lib $@.PL
60 c2ph: c2ph.PL ../config.sh
62 cpan: cpan.PL ../config.sh
64 config_data: config_data.PL ../config.sh
66 corelist: corelist.PL ../config.sh
68 h2ph: h2ph.PL ../config.sh
70 h2xs: h2xs.PL ../config.sh
72 instmodsh: instmodsh.PL ../config.sh
74 json_pp: json_pp.PL ../config.sh
76 perlbug: perlbug.PL ../config.sh ../patchlevel.h
78 perldoc: perldoc.PL ../config.sh
80 perlivp: perlivp.PL ../config.sh
82 prove: prove.PL ../config.sh
84 ptar: ptar.PL ../config.sh
86 ptardiff: ptardiff.PL ../config.sh
88 ptargrep: ptargrep.PL ../config.sh
90 pl2pm: pl2pm.PL ../config.sh
92 shasum: shasum.PL ../config.sh
94 splain: splain.PL ../config.sh ../lib/diagnostics.pm
96 libnetcfg: libnetcfg.PL ../config.sh
98 piconv: piconv.PL ../config.sh
100 enc2xs: enc2xs.PL ../config.sh
102 xsubpp: xsubpp.PL ../config.sh
104 zipdetails: zipdetails.PL ../config.sh
106 pod2html: pod2html.PL ../config.sh ../ext/Pod-Html/bin/pod2html
111 rm -rf $(plextract) pstruct $(plextractexe)
112 rm -f ../t/_h2ph_pre.ph
125 $ln Makefile ../Makefile