Ensure that the gstmarshal.[ch] files are generated in time by generating both files in the same rule: previously, on...

Original commit message from CVS:
Ensure that the gstmarshal.[ch] files are generated in time by generating
both files in the same rule: previously, only the .c would be generated in
time.  Don't put the files in dists (add a dist-hook to take them out),
and clean the files when running distclean.
This commit is contained in:
Richard Boulton 2001-06-28 23:58:54 +00:00
parent 835d9ee594
commit 5ffe5a0901

View file

@ -127,14 +127,23 @@ cothreads.o: $(srcdir)/cothreads.c $(srcdir)/cothreads.h $(srcdir)/gst_private.h
##### Other built sources #####
# Generate both marshal files together. Makes dependency work easier.
gstmarshal.h: gstmarshal.list
glib-genmarshal --header --prefix=gst gstmarshal.list > gstmarshal.h
glib-genmarshal --body --prefix=gst gstmarshal.list > gstmarshal.c
gstmarshal.c: gstmarshal.list
glib-genmarshal --header --prefix=gst gstmarshal.list > gstmarshal.h
glib-genmarshal --body --prefix=gst gstmarshal.list > gstmarshal.c
##### end built sources #####
# Don't want the generated marshal files in the dist
dist-hook:
rm -f $(distdir)/gstmarshal.c $(distdir)/gstmarshal.h
# Clean generated files
distclean-local:
rm -f $(builddir)/gstmarshal.c $(builddir)/gstmarshal.h
libgstincludedir = $(includedir)/gst
libgstinclude_HEADERS = \