From 25184d6017f4a1d9f132911687be4e1eaeaddeaa Mon Sep 17 00:00:00 2001 From: Andy Wingo Date: Tue, 19 Mar 2002 17:07:20 +0000 Subject: [PATCH] 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 --- gst/Makefile.am | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/gst/Makefile.am b/gst/Makefile.am index c652a43..f802393 100644 --- a/gst/Makefile.am +++ b/gst/Makefile.am @@ -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: -- 2.7.4