better parser makefile fix
authorMorgan Deters <mdeters@gmail.com>
Fri, 3 Aug 2012 00:09:57 +0000 (00:09 +0000)
committerMorgan Deters <mdeters@gmail.com>
Fri, 3 Aug 2012 00:09:57 +0000 (00:09 +0000)
src/parser/cvc/Makefile.am
src/parser/smt/Makefile.am
src/parser/smt2/Makefile.am
src/parser/tptp/Makefile.am

index de4abc1e9a5804e2c92d34074cd3dd2b71d99c94..91533ca7b86990ad6581a18033007c484624a5a6 100644 (file)
@@ -15,14 +15,14 @@ ANTLR_OPTS =
 noinst_LTLIBRARIES = libparsercvc.la
 
 ANTLR_TOKEN_STUFF = \
-       @abs_builddir@/generated/Cvc.tokens
+       generated/Cvc.tokens
 ANTLR_LEXER_STUFF = \
-       @abs_builddir@/generated/CvcLexer.h \
-       @abs_builddir@/generated/CvcLexer.c \
+       generated/CvcLexer.h \
+       generated/CvcLexer.c \
        $(ANTLR_TOKEN_STUFF)
 ANTLR_PARSER_STUFF = \
-       @abs_builddir@/generated/CvcParser.h \
-       @abs_builddir@/generated/CvcParser.c
+       generated/CvcParser.h \
+       generated/CvcParser.c
 ANTLR_STUFF = \
        $(ANTLR_LEXER_STUFF) \
        $(ANTLR_PARSER_STUFF)
@@ -33,7 +33,13 @@ libparsercvc_la_SOURCES = \
        cvc_input.cpp \
        $(ANTLR_STUFF)
 
-BUILT_SOURCES = $(ANTLR_STUFF) stamp-generated
+BUILT_SOURCES = \
+       generated/Cvc.tokens \
+       generated/CvcLexer.h \
+       generated/CvcLexer.c \
+       generated/CvcParser.h \
+       generated/CvcParser.c \
+       stamp-generated
 
 EXTRA_DIST = README
 
@@ -47,7 +53,7 @@ stamp-generated:
        $(AM_V_at)touch stamp-generated
 
 # antlr doesn't overwrite output files, it just leaves them.  So we have to delete them first.
-@abs_builddir@/generated/CvcLexer.h: Cvc.g stamp-generated
+generated/CvcLexer.h: Cvc.g stamp-generated
        -$(AM_V_at)rm -f $(ANTLR_STUFF)
        @if test -z "$(ANTLR)"; then echo "ERROR: antlr parser generator cannot be found, cannot generate the parser" >&2; exit 1; fi
        $(AM_V_GEN)$(ANTLR) $(ANTLR_OPTS) -fo "generated" "@srcdir@/Cvc.g"
@@ -56,4 +62,4 @@ stamp-generated:
 # make and the lexer needs to be rebuilt, we have to keep the rules
 # from running in parallel (since the token files will be deleted &
 # recreated)
-@abs_builddir@/generated/CvcLexer.c @abs_builddir@/generated/CvcParser.h @abs_builddir@/generated/CvcParser.c $(ANTLR_TOKEN_STUFF): @abs_builddir@/generated/CvcLexer.h
+generated/CvcLexer.c generated/CvcParser.h generated/CvcParser.c $(ANTLR_TOKEN_STUFF): generated/CvcLexer.h
index 4879f0c4ba00ec81e41bc70baa70747f0553b153..ffc5397c74555a19ac33a0f80be10f5e501ba3e2 100644 (file)
@@ -15,14 +15,14 @@ ANTLR_OPTS =
 noinst_LTLIBRARIES = libparsersmt.la
 
 ANTLR_TOKEN_STUFF = \
-       @abs_builddir@/generated/Smt.tokens
+       generated/Smt.tokens
 ANTLR_LEXER_STUFF = \
-       @abs_builddir@/generated/SmtLexer.h \
-       @abs_builddir@/generated/SmtLexer.c \
+       generated/SmtLexer.h \
+       generated/SmtLexer.c \
        $(ANTLR_TOKEN_STUFF)
 ANTLR_PARSER_STUFF = \
-       @abs_builddir@/generated/SmtParser.h \
-       @abs_builddir@/generated/SmtParser.c
+       generated/SmtParser.h \
+       generated/SmtParser.c
 ANTLR_STUFF = \
        $(ANTLR_LEXER_STUFF) \
        $(ANTLR_PARSER_STUFF)
@@ -35,7 +35,13 @@ libparsersmt_la_SOURCES = \
        smt_input.cpp \
        $(ANTLR_STUFF)
 
-BUILT_SOURCES = $(ANTLR_STUFF) stamp-generated
+BUILT_SOURCES = \
+       generated/Smt.tokens \
+       generated/SmtLexer.h \
+       generated/SmtLexer.c \
+       generated/SmtParser.h \
+       generated/SmtParser.c \
+       stamp-generated
 
 DISTCLEANFILES = $(ANTLR_STUFF)
 distclean-local:
@@ -47,7 +53,7 @@ stamp-generated:
        $(AM_V_at)touch stamp-generated
 
 # antlr doesn't overwrite output files, it just leaves them.  So we have to delete them first.
-@abs_builddir@/generated/SmtLexer.h: Smt.g stamp-generated
+generated/SmtLexer.h: Smt.g stamp-generated
        -$(AM_V_at)rm -f $(ANTLR_STUFF)
        @if test -z "$(ANTLR)"; then echo "ERROR: antlr parser generator cannot be found, cannot generate the parser" >&2; exit 1; fi
        $(AM_V_GEN)$(ANTLR) $(ANTLR_OPTS) -fo "generated" "@srcdir@/Smt.g"
@@ -56,4 +62,4 @@ stamp-generated:
 # make and the lexer needs to be rebuilt, we have to keep the rules
 # from running in parallel (since the token files will be deleted &
 # recreated)
-@abs_builddir@/generated/SmtLexer.c @abs_builddir@/generated/SmtParser.h @abs_builddir@/generated/SmtParser.c $(ANTLR_TOKEN_STUFF): @abs_builddir@/generated/SmtLexer.h
+generated/SmtLexer.c generated/SmtParser.h generated/SmtParser.c $(ANTLR_TOKEN_STUFF): generated/SmtLexer.h
index 94cf07c42188023811ba12c103574bbc2256726b..f55fe75cbfd8bb604195381f9a4344e664f0199f 100644 (file)
@@ -15,14 +15,14 @@ ANTLR_OPTS =
 noinst_LTLIBRARIES = libparsersmt2.la
 
 ANTLR_TOKEN_STUFF = \
-       @abs_builddir@/generated/Smt2.tokens
+       generated/Smt2.tokens
 ANTLR_LEXER_STUFF = \
-       @abs_builddir@/generated/Smt2Lexer.h \
-       @abs_builddir@/generated/Smt2Lexer.c \
+       generated/Smt2Lexer.h \
+       generated/Smt2Lexer.c \
        $(ANTLR_TOKEN_STUFF)
 ANTLR_PARSER_STUFF = \
-       @abs_builddir@/generated/Smt2Parser.h \
-       @abs_builddir@/generated/Smt2Parser.c
+       generated/Smt2Parser.h \
+       generated/Smt2Parser.c
 ANTLR_STUFF = \
        $(ANTLR_LEXER_STUFF) \
        $(ANTLR_PARSER_STUFF)
@@ -35,7 +35,13 @@ libparsersmt2_la_SOURCES = \
        smt2_input.cpp \
        $(ANTLR_STUFF)
 
-BUILT_SOURCES = $(ANTLR_STUFF) stamp-generated
+BUILT_SOURCES = \
+       generated/Smt2.tokens \
+       generated/Smt2Lexer.h \
+       generated/Smt2Lexer.c \
+       generated/Smt2Parser.h \
+       generated/Smt2Parser.c \
+       stamp-generated
 
 DISTCLEANFILES = $(ANTLR_STUFF)
 distclean-local:
@@ -47,7 +53,7 @@ stamp-generated:
        $(AM_V_at)touch stamp-generated
 
 # antlr doesn't overwrite output files, it just leaves them.  So we have to delete them first.
-@abs_builddir@/generated/Smt2Lexer.h: Smt2.g stamp-generated
+generated/Smt2Lexer.h: Smt2.g stamp-generated
        -$(AM_V_at)rm -f $(ANTLR_STUFF)
        @if test -z "$(ANTLR)"; then echo "ERROR: antlr parser generator cannot be found, cannot generate the parser" >&2; exit 1; fi
        $(AM_V_GEN)$(ANTLR) $(ANTLR_OPTS) -fo "generated" "@srcdir@/Smt2.g"
@@ -56,4 +62,4 @@ stamp-generated:
 # make and the lexer needs to be rebuilt, we have to keep the rules
 # from running in parallel (since the token files will be deleted &
 # recreated)
-@abs_builddir@/generated/Smt2Lexer.c @abs_builddir@/generated/Smt2Parser.h @abs_builddir@/generated/Smt2Parser.c $(ANTLR_TOKEN_STUFF): @abs_builddir@/generated/Smt2Lexer.h
+generated/Smt2Lexer.c generated/Smt2Parser.h generated/Smt2Parser.c $(ANTLR_TOKEN_STUFF): generated/Smt2Lexer.h
index 6008f7da2dae731976145e4673d330dcb41b2a3d..fa677d6c0b0b4f0631e0b3796fbb31b7e5bd5618 100644 (file)
@@ -15,14 +15,14 @@ ANTLR_OPTS =
 noinst_LTLIBRARIES = libparsertptp.la
 
 ANTLR_TOKEN_STUFF = \
-       @abs_builddir@/generated/Tptp.tokens
+       generated/Tptp.tokens
 ANTLR_LEXER_STUFF = \
-       @abs_builddir@/generated/TptpLexer.h \
-       @abs_builddir@/generated/TptpLexer.c \
+       generated/TptpLexer.h \
+       generated/TptpLexer.c \
        $(ANTLR_TOKEN_STUFF)
 ANTLR_PARSER_STUFF = \
-       @abs_builddir@/generated/TptpParser.h \
-       @abs_builddir@/generated/TptpParser.c
+       generated/TptpParser.h \
+       generated/TptpParser.c
 ANTLR_STUFF = \
        $(ANTLR_LEXER_STUFF) \
        $(ANTLR_PARSER_STUFF)
@@ -35,7 +35,13 @@ libparsertptp_la_SOURCES = \
        tptp_input.cpp \
        $(ANTLR_STUFF)
 
-BUILT_SOURCES = $(ANTLR_STUFF) stamp-generated
+BUILT_SOURCES = \
+       generated/Tptp.tokens \
+       generated/TptpLexer.h \
+       generated/TptpLexer.c \
+       generated/TptpParser.h \
+       generated/TptpParser.c \
+       stamp-generated
 
 DISTCLEANFILES = $(ANTLR_STUFF)
 distclean-local:
@@ -47,7 +53,7 @@ stamp-generated:
        $(AM_V_at)touch stamp-generated
 
 # antlr doesn't overwrite output files, it just leaves them.  So we have to delete them first.
-@abs_builddir@/generated/TptpLexer.h: Tptp.g stamp-generated
+generated/TptpLexer.h: Tptp.g stamp-generated
        -$(AM_V_at)rm -f $(ANTLR_STUFF)
        @if test -z "$(ANTLR)"; then echo "ERROR: antlr parser generator cannot be found, cannot generate the parser" >&2; exit 1; fi
        $(AM_V_GEN)$(ANTLR) $(ANTLR_OPTS) -fo "generated" "@srcdir@/Tptp.g"
@@ -56,4 +62,4 @@ stamp-generated:
 # make and the lexer needs to be rebuilt, we have to keep the rules
 # from running in parallel (since the token files will be deleted &
 # recreated)
-@abs_builddir@/generated/TptpLexer.c @abs_builddir@/generated/TptpParser.h @abs_builddir@/generated/TptpParser.c $(ANTLR_TOKEN_STUFF): @abs_builddir@/generated/TptpLexer.h
+generated/TptpLexer.c generated/TptpParser.h generated/TptpParser.c $(ANTLR_TOKEN_STUFF): generated/TptpLexer.h