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:
* tests/benchmarks/mass-elements.c:
Change licence to LGPL as granted by Benjamin and Andy.
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)
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."
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 && \
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 $^ && \