X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=x2p%2FMakefile.SH;h=ba56c49e7ba93e79c883f5cd85939be4fd526bf2;hb=cd22a09c8c81e5e4c639c15ad19704a0d1e0c842;hp=921e1b001a8b35b0f0cce71a9849dde82dac3a75;hpb=b0d7393a407a30710ceaf883df5576bb04d744af;p=p5sagit%2Fp5-mst-13.2.git diff --git a/x2p/Makefile.SH b/x2p/Makefile.SH index 921e1b0..ba56c49 100755 --- a/x2p/Makefile.SH +++ b/x2p/Makefile.SH @@ -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