Generated source files were missing a dependency on the complete set of
generated header files. e.g. gstvideodecoder.c requires gstvideoutils.h
to build and almost every codec parser source depends on parserutils.h.
https://bugs.freedesktop.org/show_bug.cgi?id=59575
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
.timestamp.symlinks: $(GENFILES)
touch $@
-$(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c %.h
+$(gen_source_c): %.c: $(local_codecparsers_srcdir)/%.c $(gen_source_h)
$(LN_S) -f $< $@
$(gen_source_h): %.h: $(local_codecparsers_srcdir)/%.h
$(LN_S) -f $< $@
.timestamp.symlinks: $(GENFILES)
touch $@
-$(gen_source_c): %.c: $(local_videoutils_srcdir)/%.c %.h
+$(gen_source_c): %.c: $(local_videoutils_srcdir)/%.c $(gen_source_h)
$(LN_S) -f $< $@
$(gen_source_h): %.h: $(local_videoutils_srcdir)/%.h
$(LN_S) -f $< $@