[asperl] tweaks to make it build with the Borland compiler. Won't run
[p5sagit/p5-mst-13.2.git] / Makefile.SH
index b9c8cdb..a70b53e 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.