mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-23 06:26:23 +00:00
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:
parent
835d9ee594
commit
5ffe5a0901
1 changed files with 9 additions and 0 deletions
|
@ -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 = \
|
||||
|
|
Loading…
Reference in a new issue