diff options
author | Dave Beckett <dave@dajobe.org> | 2003-12-06 22:40:30 +0000 |
---|---|---|
committer | Dave Beckett <dave@dajobe.org> | 2003-12-06 22:40:30 +0000 |
commit | 4f31d687c324948392fb36937fd899fcad6d8a17 (patch) | |
tree | 263ecccbbdcb7c59376f1a90216a644a7c842f83 /docs | |
parent | 27d5419b68ec402dd66acb19253de4e482344dda (diff) | |
download | raptor-4f31d687c324948392fb36937fd899fcad6d8a17.tar.gz |
Remove maintainer only n3 lex/yacc rules (flex/bison)
Post process the bison output to remove unused label to make g++ happier.
Diffstat (limited to 'docs')
-rw-r--r-- | docs/Makefile.am | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am index e28115a5..4087a108 100644 --- a/docs/Makefile.am +++ b/docs/Makefile.am @@ -121,14 +121,17 @@ pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = raptor.pc # Actually it needs n3_parser.h but nevermind -@MAINT@n3_lexer.c: $(srcdir)/n3_lexer.l n3_parser.tab.c -@MAINT@ $(LEX) -o$@ $(srcdir)/n3_lexer.l -@MAINT@ mv $@ n3_lexer.t -@MAINT@ sed -e 's/\(^[ \t]*free(.*ptr.*\)$$/if(ptr) \1/' n3_lexer.t > $@ -@MAINT@ rm -f n3_lexer.t - -@MAINT@n3_parser.tab.c: $(srcdir)/n3_parser.y -@MAINT@ $(YACC) -b n3_parser -p n3_parser_ -d -v $(srcdir)/n3_parser.y +n3_lexer.c: $(srcdir)/n3_lexer.l n3_parser.tab.c + $(LEX) -o$@ $(srcdir)/n3_lexer.l + mv $@ n3_lexer.t + sed -e 's/\(^[ \t]*free(.*ptr.*\)$$/if(ptr) \1/' n3_lexer.t > $@ + rm -f n3_lexer.t + +n3_parser.tab.c: $(srcdir)/n3_parser.y + $(YACC) -b n3_parser -p n3_parser_ -d -v $(srcdir)/n3_parser.y + mv $@ n3_parser.t + sed -e '/^yyerrlab1:/,/^\#endif/d' n3_parser.t > $@ + rm -f n3_parser.t # Actually it needs n3_parser.h but nevermind |