gst/parse/Makefile.am: Fix the build by correcting the rule that gave wrong files to flex.

Original commit message from CVS:
* gst/parse/Makefile.am:
Fix the build by correcting the rule that gave wrong files to flex.
This commit is contained in:
Stefan Kost 2007-04-19 10:22:29 +00:00
parent e4e5396411
commit 55eca2e566
2 changed files with 11 additions and 6 deletions

View file

@ -1,3 +1,8 @@
2007-04-19 Stefan Kost <ensonic@users.sf.net>
* gst/parse/Makefile.am:
Fix the build by correcting the rule that gave wrong files to flex.
2007-04-19 Stefan Kost <ensonic@users.sf.net>
* tests/benchmarks/complexity.c:

View file

@ -11,12 +11,12 @@ EXTRA_DIST = \
lex._gst_parse_yy.pre.c
# uncomment these lines to dist the generated sources
#BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c
#BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c
#libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
# uncomment these lines to _NOT_ dist the generated sources
nodist_libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
CLEANFILES += grammar.tab.c lex._gst_parse_yy.c
CLEANFILES += grammar.tab.c lex._gst_parse_yy.c
libgstparse_la_CFLAGS = $(GST_ALL_CFLAGS)
libgstparse_la_LIBADD = $(GST_ALL_LIBS)
@ -45,14 +45,14 @@ endif
lex._gst_parse_yy.pre.c: parse.l grammar.tab.pre.h
if GENERATE_PARSER
$(FLEX_PATH) -P_gst_parse_yy lex._gst_parse_yy.c && \
$(FLEX_PATH) -P_gst_parse_yy $^ && \
mv lex._gst_parse_yy.c lex._gst_parse_yy_tmp.c && \
echo '#ifdef HAVE_CONFIG_H' > lex._gst_parse_yy_tmp2.c && \
echo '#include <config.h>' >> lex._gst_parse_yy_tmp2.c && \
echo '#endif' >> lex._gst_parse_yy_tmp2.c && \
cat lex._gst_parse_yy_tmp.c >> lex._gst_parse_yy_tmp2.c && \
rm lex._gst_parse_yy_tmp.c && \
mv lex._gst_parse_yy_tmp2.c lex._gst_parse_yy.c
mv lex._gst_parse_yy_tmp2.c lex._gst_parse_yy.c && \
cp lex._gst_parse_yy.c lex._gst_parse_yy.pre.c
else
echo "Timestamp issue on pregenerated flex output."
@ -61,7 +61,7 @@ else
endif
if GENERATE_PARSER
grammar.tab.c grammar.tab.h: grammar.y
grammar.tab.c grammar.tab.h: grammar.y
$(BISON_PATH) -d -v -p_gst_parse_yy $(srcdir)/grammar.y -o grammar.tab.c && \
mv grammar.tab.c grammar.tab_tmp.c && \
echo '#ifdef HAVE_CONFIG_H' > grammar.tab_tmp2.c && \
@ -75,7 +75,7 @@ grammar.tab.c grammar.tab.h: grammar.tab.pre.c grammar.tab.pre.h
cp $(srcdir)/grammar.tab.pre.h grammar.tab.h
cp $(srcdir)/grammar.tab.pre.c grammar.tab.c
endif
if GENERATE_PARSER
lex._gst_parse_yy.c: parse.l grammar.tab.h
$(FLEX_PATH) -P_gst_parse_yy $^ && \