This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Use of strings with code points over 0xFF as arguments to "vec"
[perl5.git] / utils / Makefile.PL
CommitLineData
145bbcac
NC
1#!./miniperl -w
2use strict;
3use Config;
4
5if (@ARGV) {
6 my $dir = shift;
7 chdir $dir or die "Can't chdir '$dir': $!";
8}
9
0827416d
NC
10# Note, the generated utils/Makefile isn't used by VMS yet.
11# The next step on cleaning this is up is probably to work to reduce the size
12# of the "problem" in both this file and vms/descrip_mms.template by
13# attempting to move the work from them to the extension directories and
14# ExtUtils::MakeMaker.
15
3d7c117d 16require './regen/regen_lib.pl';
145bbcac
NC
17
18my $target = 'utils/Makefile';
19print "Extracting $target (with variable substitutions)\n";
0827416d 20my $fh = open_new($target, undef, {by => $0}, 1);
145bbcac 21
939767c9
AD
22# These use the Cwd extension. For statically-built perls, we
23# need perl, not just miniperl.
145bbcac
NC
24my $perl = defined $Config{usedl} ? '../miniperl' : '../perl';
25
26print $fh <<"EOT";
939767c9 27PERL = $perl
52cebf5e 28REALPERL = ../perl
d708ee4b 29RUN = # Used mainly cross-compilation setups.
6d4b7d88 30
145bbcac 31EOT
6d4b7d88 32
145bbcac 33print $fh <<'EOT';
1756d26f 34
35# Files to be built with variable substitution after miniperl is
36# available. Dependencies handled manually below (for now).
37
2560602c
A
38pl = 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 encguess.PL xsubpp.PL pod2html.PL zipdetails.PL
39plextract = corelist cpan h2ph h2xs instmodsh json_pp perlbug perldoc perlivp pl2pm prove ptar ptardiff ptargrep shasum splain libnetcfg piconv enc2xs encguess xsubpp pod2html zipdetails
40plextractexe = ./corelist ./cpan ./h2ph ./h2xs ./json_pp ./instmodsh ./perlbug ./perldoc ./perlivp ./pl2pm ./prove ./ptar ./ptardiff ./ptargrep ./shasum ./splain ./libnetcfg ./piconv ./enc2xs ./encguess ./xsubpp ./pod2html ./zipdetails
1756d26f 41
52cebf5e
EP
42all: $(plextract)
43
1756d26f 44$(plextract):
6d4b7d88 45 $(RUN) $(PERL) -I../lib $@.PL
1756d26f 46
ce28de53
RGS
47cpan: cpan.PL ../config.sh
48
8f2fd531
JB
49corelist: corelist.PL ../config.sh
50
84902520 51h2ph: h2ph.PL ../config.sh
774d564b 52
84902520 53h2xs: h2xs.PL ../config.sh
32ea9a2a 54
a55f9fbc
RGS
55instmodsh: instmodsh.PL ../config.sh
56
bdec6fb9
MH
57json_pp: json_pp.PL ../config.sh
58
84902520 59perlbug: perlbug.PL ../config.sh ../patchlevel.h
774d564b 60
84902520 61perldoc: perldoc.PL ../config.sh
774d564b 62
cdf8b154
PK
63perlivp: perlivp.PL ../config.sh
64
e4fc8a1e
RGS
65prove: prove.PL ../config.sh
66
291d3373
RGS
67ptar: ptar.PL ../config.sh
68
b8669316
RGS
69ptardiff: ptardiff.PL ../config.sh
70
deabda19
CBW
71ptargrep: ptargrep.PL ../config.sh
72
84902520 73pl2pm: pl2pm.PL ../config.sh
774d564b 74
6bc89f92
SP
75shasum: shasum.PL ../config.sh
76
84902520 77splain: splain.PL ../config.sh ../lib/diagnostics.pm
5f05dabc 78
406c51ee
JH
79libnetcfg: libnetcfg.PL ../config.sh
80
3e06bf43
JH
81piconv: piconv.PL ../config.sh
82
5d437a65
JH
83enc2xs: enc2xs.PL ../config.sh
84
59658819
CBW
85enc2xs: encguess.PL ../config.sh
86
a55f9fbc
RGS
87xsubpp: xsubpp.PL ../config.sh
88
08ad9465
CBW
89zipdetails: zipdetails.PL ../config.sh
90
d658129c
FR
91pod2html: pod2html.PL ../config.sh ../ext/Pod-Html/bin/pod2html
92
1756d26f 93clean:
94
95realclean:
2560602c 96 rm -rf $(plextract) $(plextractexe)
bb0110d4 97 rm -f ../t/_h2ph_pre.ph
1756d26f 98
99clobber: realclean
100
101distclean: clobber
2edbd6da
JH
102
103veryclean: distclean
104 -rm -f *~ *.org
145bbcac
NC
105EOT
106
0827416d 107read_only_bottom_close_and_rename($fh);