Fix 'make distcheck'
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 26 May 2009 09:41:28 +0000 (10:41 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 26 May 2009 09:41:28 +0000 (10:41 +0100)
The check-enum-gettypes rule didn't work for 'make distcheck' since
it makes assumptions about the location of the source files from the
current working directory which isn't true during distchecking.

Makefile.am

index 20527a5..5251d66 100644 (file)
@@ -106,7 +106,7 @@ check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
        FUNCS=`grep '_get_type (' gst/gstenumtypes.h | sed -e 's/^.*gst_/gst_/' -e 's/_get_type.*$$/_get_type/'`;\
        MISSING_FUNCS='';                                                                                        \
        for f in $$FUNCS; do                                                                                     \
-         INIT_LINE=`grep $$f gst/*.c | grep g_type_class_ref`;                                                  \
+         INIT_LINE=`grep $$f $(top_srcdir)/gst/*.c | grep g_type_class_ref`;                                    \
          if test "x$$INIT_LINE" = "x"; then                                                                     \
            MISSING_FUNCS="$$MISSING_FUNCS $$f";                                                                 \
          fi;                                                                                                    \