Fixed shell in docs/gst/Makefile.am and docs/libs/Makefile.am so that it works with...
[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 # uncomment these lines to dist the generated sources
9 #BUILT_SOURCES = grammar.tab.h grammar.tab.c lex._gst_parse_yy.c 
10 #libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
11
12 # uncomment these lines to _NOT_ dist the generated sources
13 nodist_libgstparse_la_SOURCES = lex._gst_parse_yy.c grammar.tab.c
14 CLEANFILES += grammar.tab.c lex._gst_parse_yy.c 
15
16 libgstparse_la_CFLAGS = $(GST_CFLAGS) $(DISABLE_FLEX_WARNING)
17 libgstparse_la_LIBADD = $(LIBGST_LIBS)
18
19 noinst_HEADERS = grammar.tab.h
20
21 grammar.tab.c grammar.tab.h: grammar.y ../gstmarshal.h
22         $(BISON_PATH) -d -v -p_gst_parse__yy $(srcdir)/grammar.y -o grammar.tab.c
23  
24 parse.l : grammar.tab.h
25
26 lex._gst_parse_yy.c: parse.l 
27         $(FLEX_PATH) -P_gst_parse_yy $^
28
29 ## this is so make install without a previous make can work, because
30 ## this dir needs gstmarshal.h generated
31 ../gstmarshal.h:
32         cd .. && $(MAKE) gstmarshal.h