perl5.004 hints file (maint and dev paths)
[p5sagit/p5-mst-13.2.git] / Makefile.SH
index b9c8cdb..4f78f57 100644 (file)
@@ -233,6 +233,12 @@ lintflags = -hbvxac
 all: $(FIRSTMAKEFILE) miniperl $(private) $(plextract) $(public) $(dynamic_ext)
        @echo " "; echo "       Everything is up to date."
 
+compile: all
+       echo "testing compilation" > testcompile;
+       cd utils;  $(MAKE) compile;
+       cd x2p; $(MAKE) compile; 
+       cd pod; $(MAKE) compile;
+
 translators:   miniperl lib/Config.pm FORCE
        @echo " "; echo "       Making x2p stuff"; cd x2p; $(LDLIBPTH) $(MAKE) all
 
@@ -373,6 +379,12 @@ $(plextract):      miniperl lib/Config.pm
 install: all install.perl install.man
 
 install.perl:  all installperl
+       if [ -n "$(COMPILE)" ]; \
+       then \
+               cd utils; $(MAKE) compile; \
+               cd ../x2p; $(MAKE) compile; \
+               cd ../pod; $(MAKE) compile; \
+       fi
        $(LDLIBPTH) ./perl installperl
 
 install.man:   all installman
@@ -485,6 +497,7 @@ _tidy:
        -@for x in $(DYNALOADER) $(dynamic_ext) $(static_ext) ; do \
        sh ext/util/make_ext clean $$x MAKE=$(MAKE) ; \
        done
+       rm -f testcompile compilelog
 
 # Do not 'make _cleaner' directly.
 _cleaner:
@@ -503,6 +516,7 @@ _cleaner:
        rm -f lib/.exists
        rm -f h2ph.man pstruct
        rm -rf .config
+       rm -f testcompile compilelog
 
 # The following lint has practically everything turned on.  Unfortunately,
 # you have to wade through a lot of mumbo jumbo that can't be suppressed.
@@ -538,7 +552,7 @@ depend: makedepend
 makedepend: makedepend.SH config.sh
        sh ./makedepend.SH
 
-test-prep: miniperl perl preplibrary $(dynamic_ext)
+test-prep: miniperl perl preplibrary utilities $(dynamic_ext)
        cd t && (rm -f perl$(EXE_EXT); $(LNS) ../perl$(EXE_EXT) perl$(EXE_EXT))
 
 test check: test-prep
@@ -559,10 +573,13 @@ minitest: miniperl
 # Handy way to run perlbug -ok without having to install and run the
 # installed perlbug. We don't re-run the tests here - we trust the user.
 # Please *don't* use this unless all tests pass.
-# If you want to report test failures, just use "perlbug -Ilib".
+# If you want to report test failures, use "make nok" instead.
 ok:    utilities
        $(LBLIBPTH) ./perl -Ilib utils/perlbug -ok -s '(UNINSTALLED)'
 
+nok:   utilities
+       $(LBLIBPTH) ./perl -Ilib utils/perlbug -nok -s '(UNINSTALLED)'
+
 clist: $(c)
        echo $(c) | tr ' ' '\012' >.clist