7 chdir $dir or die "Can't chdir '$dir': $!";
10 require 'regen/regen_lib.pl';
12 my $target = 'utils/Makefile';
13 print "Extracting $target (with variable substitutions)\n";
14 my $fh = open_new($target, undef, undef, 1);
16 # These use the Cwd extension. For statically-built perls, we
17 # need perl, not just miniperl.
18 my $perl = defined $Config{usedl} ? '../miniperl' : '../perl';
21 # Generated from utils/Makefile.SH. The generated file is
22 # shipped with the source kit for systems such as win32
23 # which don't do .SH extraction.
27 RUN = $Config{run} # Used mainly cross-compilation setups.
33 # Files to be built with variable substitution after miniperl is
34 # available. Dependencies handled manually below (for now).
36 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
37 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
38 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
43 $(RUN) $(PERL) -I../lib $@.PL
45 c2ph: c2ph.PL ../config.sh
47 cpan: cpan.PL ../config.sh
49 config_data: config_data.PL ../config.sh
51 corelist: corelist.PL ../config.sh
53 h2ph: h2ph.PL ../config.sh
55 h2xs: h2xs.PL ../config.sh
57 instmodsh: instmodsh.PL ../config.sh
59 json_pp: json_pp.PL ../config.sh
61 perlbug: perlbug.PL ../config.sh ../patchlevel.h
63 perldoc: perldoc.PL ../config.sh
65 perlivp: perlivp.PL ../config.sh
67 prove: prove.PL ../config.sh
69 ptar: ptar.PL ../config.sh
71 ptardiff: ptardiff.PL ../config.sh
73 ptargrep: ptargrep.PL ../config.sh
75 pl2pm: pl2pm.PL ../config.sh
77 shasum: shasum.PL ../config.sh
79 splain: splain.PL ../config.sh ../lib/diagnostics.pm
81 libnetcfg: libnetcfg.PL ../config.sh
83 piconv: piconv.PL ../config.sh
85 enc2xs: enc2xs.PL ../config.sh
87 xsubpp: xsubpp.PL ../config.sh
89 zipdetails: zipdetails.PL ../config.sh
91 pod2html: pod2html.PL ../config.sh ../ext/Pod-Html/bin/pod2html
96 rm -rf $(plextract) pstruct $(plextractexe)
97 rm -f ../t/_h2ph_pre.ph
107 close_and_rename($fh);