Use PERL=../miniperl
[p5sagit/p5-mst-13.2.git] / Makefile.SH
index b3ac78b..e36cf10 100644 (file)
@@ -120,7 +120,7 @@ DYNALOADER = lib/auto/DynaLoader/DynaLoader.a
 
 libs = $libs $cryptlib
 
-public = perl $suidperl
+public = perl $suidperl utilities translators
 
 shellflags = $shellflags
 
@@ -160,11 +160,9 @@ shextract = Makefile cflags config.h makeaperl makedepend \
 # Files to be built with variable substitution after miniperl is
 # available.  Dependencies handled manually below (for now).
 
-pl = c2ph.PL h2ph.PL h2xs.PL perldoc.PL \
-       pod/pod2html.PL pod/pod2latex.PL pod/pod2man.PL
+pl = pod/pod2html.PL pod/pod2latex.PL pod/pod2man.PL pod/pod2text.PL
 
-plextract = c2ph h2ph h2xs perldoc \
-       pod/pod2html pod/pod2latex pod/pod2man
+plextract = pod/pod2html pod/pod2latex pod/pod2man pod/pod2text
 
 addedbyconf = UU $(shextract) $(plextract) pstruct
 
@@ -207,8 +205,15 @@ SHELL = /bin/sh
        $(CCCMD) $(PLDLFLAGS) $*.c
 
 all: makefile miniperl $(private) $(plextract) $(public) $(dynamic_ext)
+       @echo " "; echo "       Everything is up to date."
+
+translators:   miniperl lib/Config.pm FORCE
        @echo " "; echo "       Making x2p stuff"; cd x2p; $(MAKE) all
 
+utilities:     miniperl lib/Config.pm FORCE
+       @echo " "; echo "       Making utilities"; cd utils; $(MAKE) all
+
+
 # This is now done by installman only if you actually want the man pages.
 #      @echo " "; echo "       Making docs"; cd pod; $(MAKE) all;
 
@@ -296,8 +301,8 @@ lib/Config.pm: config.sh miniperl
        ./miniperl configpm tmp
        sh mv-if-diff tmp lib/Config.pm
 
-lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl minimod.PL lib/Config.pm
-       ./miniperl minimod.PL > tmp && mv tmp $@
+lib/ExtUtils/Miniperl.pm: miniperlmain.c miniperl minimod.pl lib/Config.pm
+       ./miniperl minimod.pl > tmp && mv tmp $@
 
 $(plextract):  miniperl lib/Config.pm
        ./miniperl -Ilib $@.PL
@@ -373,17 +378,19 @@ s_dummy $(static_ext):    miniperl preplibrary $(DYNALOADER) FORCE
 clean:
        rm -f *.o *.a all perlmain.c
        rm -f perl.exp ext.libs
-       -cd x2p; $(MAKE) clean
        -cd pod; $(MAKE) clean
+       -cd utils; $(MAKE) clean
+       -cd x2p; $(MAKE) clean
        -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
        sh ext/util/make_ext clean $$x ; \
        done
        rm -f perl suidperl miniperl $(perllib)
 
 realclean: clean
-       -cd x2p; $(MAKE) realclean
-       -cd pod; $(MAKE) realclean
        -cd os2; rm -f Makefile
+       -cd pod; $(MAKE) realclean
+       -cd utils; $(MAKE) realclean
+       -cd x2p; $(MAKE) realclean
        -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
        sh ext/util/make_ext realclean $$x ; \
        done