Tests for -X overload on File::stat.
[p5sagit/p5-mst-13.2.git] / x2p / Makefile.SH
index 921e1b0..ba56c49 100755 (executable)
@@ -62,6 +62,8 @@ OPTIMIZE = $optimize
 
 .SUFFIXES: .c \$(OBJ_EXT)
 
+RUN = $run
+
 !GROK!THIS!
 
 cat >>Makefile <<'!NO!SUBS!'
@@ -122,6 +124,9 @@ run_byacc:  FORCE
            -e 's/^yynewerror://' \
            -e 's/^    goto yynewerror;//' \
            -e 's|^static char yysccsid\(.*\)|/* static char yysccsid\1 */|' \
+           -e 's/^\(char \*yyname\[\]\)/const \1/' \
+           -e 's/^\(char \*yyrule\[\]\)/const \1/' \
+           -e 's/^\(    register\) \(char \*yys;\)/\1 const \2/' \
            < y.tab.c > a2p.c
 
 FORCE:
@@ -169,7 +174,7 @@ shlist:
 # These should be automatically generated
 
 $(plextract):
-       ../miniperl -I../lib $@.PL
+       $(RUN) ../miniperl -I../lib $@.PL
 
 find2perl: find2perl.PL