Commit 25184d60 authored by Andy Wingo Wingo's avatar Andy Wingo Wingo

do the genmarshalling to temp files, then move the temp files over

Original commit message from CVS:
do the genmarshalling to temp files, then move the temp files over
parent d6b07866
......@@ -86,17 +86,16 @@ libgstreamer_la_SOURCES = \
BUILT_SOURCES = gstmarshal.h gstmarshal.c
# Generate both marshal files together. Makes dependency work easier.
gstmarshal.h: gstmarshal.list
glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h
glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
mv gstmarshal.h.tmp gstmarshal.h
gstmarshal.c: gstmarshal.list
echo "#include \"glib-object.h\"" >gstmarshal.c
echo "#include \"gstlog.h\"" >> gstmarshal.c
echo "#include \"gstmarshal.h\"" >> gstmarshal.c
glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c
##### end built sources #####
echo "#include \"glib-object.h\"" >gstmarshal.c.tmp
echo "#include \"gstlog.h\"" >> gstmarshal.c.tmp
echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
mv gstmarshal.c.tmp gstmarshal.c
# Don't want the generated marshal files in the dist
dist-hook:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment