diff options
-rw-r--r-- | Makefile.am | 19 | ||||
-rw-r--r-- | docs/Makefile.am | 19 | ||||
-rw-r--r-- | src/Makefile.am | 19 | ||||
-rw-r--r-- | utils/Makefile.am | 19 |
4 files changed, 44 insertions, 32 deletions
diff --git a/Makefile.am b/Makefile.am index e28115a5..4087a108 100644 --- a/Makefile.am +++ b/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 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 diff --git a/src/Makefile.am b/src/Makefile.am index e28115a5..4087a108 100644 --- a/src/Makefile.am +++ b/src/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 diff --git a/utils/Makefile.am b/utils/Makefile.am index e28115a5..4087a108 100644 --- a/utils/Makefile.am +++ b/utils/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 |