Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: b71c54b89a
Fetching contributors…

Cannot retrieve contributors at this time

135 lines (94 sloc) 3.578 kB
if test -f; then TOP=.;
elif test -f ../; then TOP=..;
elif test -f ../../; then TOP=../..;
elif test -f ../../../; then TOP=../../..;
elif test -f ../../../../; then TOP=../../../..;
echo "Can't find"; exit 1
. $TOP/
: 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
echo "Extracting utils/Makefile (with variable substitutions)"
rm -f Makefile
# These use the Cwd extension. For statically-built perls, we
# need perl, not just miniperl.
case "$usedl" in
define) perl="../miniperl" ;;
*) perl="../perl" ;;
cat >Makefile <<!GROK!THIS!
# Generated from utils/Makefile.SH. The generated file is
# shipped with the source kit for systems such as win32
# which don't do .SH extraction.
PERL = $perl
REALPERL = ../perl
RUN = $run # Used mainly cross-compilation setups.
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 json_pp.PL perlbug.PL perldoc.PL perlivp.PL pl2pm.PL prove.PL ptar.PL ptardiff.PL ptargrep.PL cpanp-run-perl.PL cpanp.PL cpan2dist.PL shasum.PL splain.PL libnetcfg.PL piconv.PL enc2xs.PL xsubpp.PL pod2html.PL zipdetails.PL
plextract = c2ph config_data corelist cpan h2ph h2xs instmodsh json_pp perlbug perldoc perlivp pl2pm prove ptar ptardiff ptargrep cpanp-run-perl cpanp cpan2dist shasum splain libnetcfg piconv enc2xs xsubpp pod2html zipdetails
plextractexe = ./c2ph ./config_data ./corelist ./cpan ./h2ph ./h2xs ./json_pp ./instmodsh ./perlbug ./perldoc ./perlivp ./pl2pm ./prove ./ptar ./ptardiff ./ptargrep ./cpanp-run-perl ./cpanp ./cpan2dist ./shasum ./splain ./libnetcfg ./piconv ./enc2xs ./xsubpp ./pod2html ./zipdetails
all: $(plextract)
$(RUN) $(PERL) -I../lib $@.PL
c2ph: c2ph.PL ../
cpan: cpan.PL ../
config_data: config_data.PL ../
corelist: corelist.PL ../
h2ph: h2ph.PL ../
h2xs: h2xs.PL ../
instmodsh: instmodsh.PL ../
json_pp: json_pp.PL ../
perlbug: perlbug.PL ../ ../patchlevel.h
perldoc: perldoc.PL ../
perlivp: perlivp.PL ../
prove: prove.PL ../
ptar: ptar.PL ../
ptardiff: ptardiff.PL ../
ptargrep: ptargrep.PL ../
cpanp-run-perl: cpanp-run-perl.PL ../
cpanp: cpanp.PL ../
cpan2dist: cpan2dist.PL ../
pl2pm: pl2pm.PL ../
shasum: shasum.PL ../
splain: splain.PL ../ ../lib/
libnetcfg: libnetcfg.PL ../
piconv: piconv.PL ../
enc2xs: enc2xs.PL ../
xsubpp: xsubpp.PL ../
zipdetails: zipdetails.PL ../
pod2html: pod2html.PL ../ ../ext/Pod-Html/bin/pod2html
rm -rf $(plextract) pstruct $(plextractexe)
rm -f ../t/
clobber: realclean
distclean: clobber
veryclean: distclean
-rm -f *~ *.org
$eunicefix Makefile
case `pwd` in
$rm -f ../Makefile
$ln Makefile ../Makefile
rm -f $firstmakefile
Jump to Line
Something went wrong with that request. Please try again.