* Fill out the docs on the yada to show it as a satand in for statements, not expressions
[p5sagit/p5-mst-13.2.git] / x2p / Makefile.SH
index b4c3058..296fdc8 100755 (executable)
@@ -124,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:
@@ -140,6 +143,8 @@ a2p$(OBJ_EXT): a2p.c a2py.c a2p.h EXTERN.h util.h INTERN.h \
 clean:
        rm -f a2p$(EXE_EXT) psed *$(OBJ_EXT) $(plexe) $(plc) $(plm)
 
+distclean: veryclean
+
 realclean: clean
        -rmdir .depending
        rm -f core $(addedbyconf) all malloc.c