fix cleaning
[platform/upstream/gstreamer.git] / gst / parse / Makefile.am
1
2 noinst_LTLIBRARIES = libgstparse.la
3
4
5 CLEANFILES = grammar.tab.h grammar.output
6 EXTRA_DIST = grammar.y parse.l types.h
7
8 BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c 
9
10 libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
11 libgstparse_la_CFLAGS = $(GST_CFLAGS) $(DISABLE_FLEX_WARNING)
12 libgstparse_la_LIBADD = $(LIBGST_LIBS)
13
14 noinst_HEADERS = grammar.tab.h
15
16 grammar.tab.c grammar.tab.h: grammar.y ../gstmarshal.h
17         $(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
18  
19 lex._gst_parse_yy.c: parse.l
20         $(FLEX_PATH) -P_gst_parse_yy $^
21
22 ## this is so make install without a previous make can work, because
23 ## this dir needs gstmarshal.h generated
24 ../gstmarshal.h:
25         cd .. && $(MAKE) gstmarshal.h