build: Make some more rules silent if requested
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Fri, 26 Feb 2010 15:03:47 +0000 (16:03 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Tue, 9 Mar 2010 20:57:17 +0000 (20:57 +0000)
Makefile.am
gst/Makefile.am
gst/parse/Makefile.am
libs/gst/base/Makefile.am
libs/gst/check/Makefile.am
libs/gst/controller/Makefile.am
libs/gst/dataprotocol/Makefile.am
libs/gst/net/Makefile.am
pkgconfig/Makefile.am
tools/Makefile.am

index d216e48..7e4f003 100644 (file)
@@ -3,7 +3,7 @@ DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-docbook
 all-local: gst-element-check-@GST_MAJORMINOR@.m4
 
 gst-element-check-@GST_MAJORMINOR@.m4: gst-element-check.m4
-       cp gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
+       $(AM_V_GEN)cp gst-element-check.m4 gst-element-check-@GST_MAJORMINOR@.m4
 
 # note: keep in sync with configure.ac
 ACLOCAL_AMFLAGS = -I common/m4 -I .
@@ -108,7 +108,7 @@ win32-update:
                $(top_srcdir)/win32/common/config.h
 
 check-enum-gettypes: $(top_builddir)/gst/gstenumtypes.h
-       echo 'Checking if all enum and flag _get_type() funcs are inited in gst_init()';                         \
+       @echo 'Checking if all enum and flag _get_type() funcs are inited in gst_init()';                        \
        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                                                                                     \
index 2e053fe..b7e1bec 100644 (file)
@@ -209,18 +209,18 @@ noinst_HEADERS =          \
        gst_private.h
 
 gstmarshal.h: gstmarshal.list
-       glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp
+       $(AM_V_GEN)glib-genmarshal --header --prefix=gst_marshal $(srcdir)/gstmarshal.list > gstmarshal.h.tmp && \
        mv gstmarshal.h.tmp gstmarshal.h
 
 gstmarshal.c: gstmarshal.list gst_private.h
-       echo "#include \"gst_private.h\"" > gstmarshal.c.tmp
-       echo "#include \"glib-object.h\"" >> gstmarshal.c.tmp
-       echo "#include \"gstmarshal.h\"" >> gstmarshal.c.tmp
-       glib-genmarshal --body --prefix=gst_marshal $(srcdir)/gstmarshal.list >> gstmarshal.c.tmp
+       $(AM_V_GEN)echo "#include \"gst_private.h\"" > gstmarshal.c.tmp && \
+       echo "#include \"glib-object.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
 
 gstenumtypes.h: $(gst_headers)
-       glib-mkenums \
+       $(AM_V_GEN)glib-mkenums \
        --fhead "#ifndef __GST_ENUM_TYPES_H__\n#define __GST_ENUM_TYPES_H__\n\n#include <glib-object.h>\n\nG_BEGIN_DECLS\n" \
        --fprod "\n/* enumerations from \"@filename@\" */\n" \
        --vhead "GType @enum_name@_get_type (void);\n#define GST_TYPE_@ENUMSHORT@ (@enum_name@_get_type())\n"         \
@@ -228,7 +228,7 @@ gstenumtypes.h: $(gst_headers)
        $^ > gstenumtypes.h
 
 gstenumtypes.c: $(gst_headers)
-       glib-mkenums \
+       $(AM_V_GEN)glib-mkenums \
        --fhead "#include \"gst_private.h\"\n#include <gst/gst.h>\n#define C_ENUM(v) ((gint) v)\n#define C_FLAGS(v) ((guint) v)\n " \
        --fprod "\n/* enumerations from \"@filename@\" */" \
        --vhead "GType\n@enum_name@_get_type (void)\n{\n  static gsize id = 0;\n  static const G@Type@Value values[] = {"     \
@@ -248,7 +248,7 @@ gir_headers=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_MAJORMINOR@include_HEA
 gir_sources=$(patsubst %,$(srcdir)/%, $(libgstreamer_@GST_MAJORMINOR@_la_SOURCES))
 
 Gst-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstreamer-@GST_MAJORMINOR@.la
-       $(INTROSPECTION_SCANNER) -v --namespace Gst \
+       $(AM_V_GEN)$(INTROSPECTION_SCANNER) -v --namespace Gst \
                --nsversion=@GST_MAJORMINOR@ \
                -I$(top_srcdir) \
                -I$(top_builddir) \
@@ -279,14 +279,14 @@ typelibsdir = $(libdir)/girepository-1.0/
 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
 %.typelib: %.gir $(INTROSPECTION_COMPILER)
-       $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+       $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
 
 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 endif
 
 # try to prevent packaging errors
 check-libexecdir-consistency:
-       if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_MAJORMINOR)/gst-plugin-scanner"; then \
+       @if test "${GST_PLUGIN_SCANNER_INSTALLED}" != "${libexecdir}/gstreamer-$(GST_MAJORMINOR)/gst-plugin-scanner"; then \
          echo "*** Inconsistent libexecdir! Please use ./configure --libexecdir=/foo/bar"; \
          echo "*** to set the libexecdir and not make libexecdir=/foo/bar or the like."; \
          echo "*** The same goes for prefix, libdir etc."; \
index 6f18cff..643b19c 100644 (file)
@@ -20,7 +20,7 @@ libgstparse_la_LIBADD = $(GST_ALL_LIBS)
 noinst_HEADERS = grammar.tab.h types.h
 
 grammar.tab.c grammar.tab.h: grammar.y
-       $(BISON_PATH) -d -v -p_gst_parse_yy $(srcdir)/grammar.y -o grammar.tab.c && \
+       $(AM_V_GEN)$(BISON_PATH) -d -v -p_gst_parse_yy $(srcdir)/grammar.y -o grammar.tab.c && \
        mv grammar.tab.c grammar.tab_tmp.c && \
        echo '#ifdef HAVE_CONFIG_H' > grammar.tab_tmp2.c && \
        echo '#include <config.h>' >> grammar.tab_tmp2.c && \
@@ -30,7 +30,7 @@ grammar.tab.c grammar.tab.h: grammar.y
        mv grammar.tab_tmp2.c grammar.tab.c
 
 lex._gst_parse_yy.c: parse.l grammar.tab.h
-       $(FLEX_PATH) -P_gst_parse_yy $^ && \
+       $(AM_V_GEN)$(FLEX_PATH) -P_gst_parse_yy $^ && \
        mv lex._gst_parse_yy.c lex._gst_parse_yy_tmp.c && \
        echo '#ifdef HAVE_CONFIG_H' > lex._gst_parse_yy_tmp2.c && \
        echo '#include <config.h>' >> lex._gst_parse_yy_tmp2.c && \
index 91733b4..ff839af 100644 (file)
@@ -53,7 +53,7 @@ gir_sources=$(patsubst %,$(srcdir)/%, $(libgstbase_@GST_MAJORMINOR@_la_SOURCES))
 gir_cincludes=$(patsubst %,--c-include='gst/base/%',$(libgstbase_@GST_MAJORMINOR@include_HEADERS))
 
 GstBase-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstbase-@GST_MAJORMINOR@.la
-       PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
+       $(AM_V_GEN)PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
                $(INTROSPECTION_SCANNER) -v --namespace GstBase \
                --nsversion=@GST_MAJORMINOR@ \
                --strip-prefix=Gst \
@@ -78,7 +78,7 @@ typelibsdir = $(libdir)/girepository-1.0/
 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
 %.typelib: %.gir $(INTROSPECTION_COMPILER)
-       $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+       $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
 
 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 endif
index 724d6a6..a526afc 100644 (file)
@@ -35,7 +35,7 @@ libgstcheck_@GST_MAJORMINOR@include_HEADERS = \
 CLEANFILES = *.gcno *.gcda *.gcov internal-check.h $(SYMBOLS_FILE)
 
 internal-check.h: $(top_builddir)/libs/gst/check/libcheck/check.h
-       cp $(top_builddir)/libs/gst/check/libcheck/check.h internal-check.h
+       $(AM_V_GEN)cp $(top_builddir)/libs/gst/check/libcheck/check.h internal-check.h
 
 %.c.gcov: .libs/libgstcheck_@GST_MAJORMINOR@_la-%.gcda %.c
        $(GCOV) -b -f -o $^ > $@.out
@@ -93,12 +93,12 @@ LIBGSTCHECK_EXPORTED_SYMBOLS = \
 # It is there for purpose. (Bug #602093)
 CHECK_SYMS=`$(SED) -n -e 's/^..*CK_EXPORT[ ]\{1,\}\([_0-9ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz]\{1,\}\)..*$$/\1/p' @top_srcdir@/libs/gst/check/libcheck/check.h.in`
 print-check-symbols:
-       for s in $(CHECK_SYMS); do \
+       @for s in $(CHECK_SYMS); do \
          echo $$s; \
        done;
 
 $(SYMBOLS_FILE):
-       rm -f $(SYMBOLS_FILE) 2>/dev/null; \
+       $(AM_V_GEN)rm -f $(SYMBOLS_FILE) 2>/dev/null; \
        for s in $(LIBGSTCHECK_EXPORTED_SYMBOLS) $(CHECK_SYMS); do \
          echo $$s >> $(SYMBOLS_FILE); \
        done
@@ -111,7 +111,7 @@ gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcheck_@GST_MAJORMINOR@_la_SOURCES)
 gir_cincludes=$(patsubst %,--c-include='gst/check/%',$(libgstcheck_@GST_MAJORMINOR@include_HEADERS))
 
 GstCheck-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcheck-@GST_MAJORMINOR@.la
-       PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
+       $(AM_V_GEN)PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
                $(INTROSPECTION_SCANNER) -v --namespace GstCheck \
                --nsversion=@GST_MAJORMINOR@ \
                --strip-prefix=Gst \
@@ -136,7 +136,7 @@ typelibsdir = $(libdir)/girepository-1.0/
 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
 %.typelib: %.gir $(INTROSPECTION_COMPILER)
-       $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+       $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
 
 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 endif
index 67cb9bf..4bad033 100644 (file)
@@ -40,7 +40,7 @@ gir_sources=$(patsubst %,$(srcdir)/%, $(libgstcontroller_@GST_MAJORMINOR@_la_SOU
 gir_cincludes=$(patsubst %,--c-include='gst/controller/%',$(libgstcontroller_@GST_MAJORMINOR@_include_HEADERS))
 
 GstController-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstcontroller-@GST_MAJORMINOR@.la
-       PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
+       $(AM_V_GEN)PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
                $(INTROSPECTION_SCANNER) -v --namespace GstController \
                --nsversion=@GST_MAJORMINOR@ \
                --strip-prefix=Gst \
@@ -65,7 +65,7 @@ typelibsdir = $(libdir)/girepository-1.0/
 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
 %.typelib: %.gir $(INTROSPECTION_COMPILER)
-       $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+       $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
 
 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 endif
index 4079329..29e002b 100644 (file)
@@ -30,7 +30,7 @@ gir_sources=$(patsubst %,$(srcdir)/%, $(libgstdataprotocol_@GST_MAJORMINOR@_la_S
 gir_cincludes=$(patsubst %,--c-include='gst/dataprotocol/%',$(libgstdataprotocol_@GST_MAJORMINOR@_include_HEADERS))
 
 GstDataprotocol-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstdataprotocol-@GST_MAJORMINOR@.la
-       PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
+       $(AM_V_GEN)PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
                $(INTROSPECTION_SCANNER) -v --namespace GstDataprotocol \
                --strip-prefix=Gst \
                --nsversion=@GST_MAJORMINOR@ \
@@ -55,7 +55,7 @@ typelibsdir = $(libdir)/girepository-1.0/
 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
 %.typelib: %.gir $(INTROSPECTION_COMPILER)
-       $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+       $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
 
 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 endif
index 3bd9dd6..a5210ff 100644 (file)
@@ -31,7 +31,7 @@ gir_sources=$(patsubst %,$(srcdir)/%, $(libgstnet_@GST_MAJORMINOR@_la_SOURCES))
 gir_cincludes=$(patsubst %,--c-include='gst/net/%',$(libgstbase_@GST_MAJORMINOR@_include_HEADERS))
 
 GstNet-@GST_MAJORMINOR@.gir: $(INTROSPECTION_SCANNER) libgstnet-@GST_MAJORMINOR@.la
-       PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
+       $(AM_V_GEN)PKG_CONFIG_PATH="$(PKG_CONFIG_PATH):$(top_builddir)/pkgconfig" \
                $(INTROSPECTION_SCANNER) -v --namespace GstNet \
                --strip-prefix=Gst \
                --nsversion=@GST_MAJORMINOR@ \
@@ -56,7 +56,7 @@ typelibsdir = $(libdir)/girepository-1.0/
 typelibs_DATA = $(BUILT_GIRSOURCES:.gir=.typelib)
 
 %.typelib: %.gir $(INTROSPECTION_COMPILER)
-       $(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
+       $(AM_V_GEN)$(INTROSPECTION_COMPILER) --includedir=$(srcdir) --includedir=$(builddir) --includedir=$(top_builddir)/gst $(INTROSPECTION_COMPILER_OPTS) $< -o $(@F)
 
 CLEANFILES += $(BUILT_GIRSOURCES) $(typelibs_DATA)
 endif
index af8983a..c928f25 100644 (file)
@@ -25,11 +25,15 @@ pcfiles_uninstalled =                                               \
 
 all-local: $(pcfiles) $(pcfiles_uninstalled)
 
+cp_verbose = $(cp_verbose_$(V))
+cp_verbose_ = $(cp_verbose_$(AM_DEFAULT_VERBOSITY))
+cp_verbose_0 = @echo "  CP     $@";
+
 ### how to generate pc files
 %-@GST_MAJORMINOR@.pc: %.pc
-       cp $< $@
+       $(cp_verbose_0)cp $< $@
 %-@GST_MAJORMINOR@-uninstalled.pc: %-uninstalled.pc
-       cp $< $@
+       $(cp_verbose_0)cp $< $@
 
 pkgconfigdir = $(libdir)/pkgconfig
 pkgconfig_DATA = $(pcfiles)
index e383cb9..51eb36b 100644 (file)
@@ -59,7 +59,7 @@ gst_xmlinspect_@GST_MAJORMINOR@_CFLAGS = $(GST_OBJ_CFLAGS)
 gst_xmlinspect_@GST_MAJORMINOR@_LDFLAGS = $(GST_OBJ_LIBS)
 
 gst-feedback-@GST_MAJORMINOR@: gst-feedback-m.m
-       cp $(srcdir)/gst-feedback-m.m $@
+       $(AM_V_GEN)cp $(srcdir)/gst-feedback-m.m $@ && \
        chmod +x $@
 
 # make sure each unversioned tool comes from gst-run.c
@@ -126,7 +126,7 @@ EXTRA_DIST = \
        gst-plot-timeline.py
 
 %-@GST_MAJORMINOR@.1: %.1.in
-       sed \
+       $(AM_V_GEN)sed \
                -e s,gst-feedback,gst-feedback-@GST_MAJORMINOR@,g \
                -e s,gst-inspect,gst-inspect-@GST_MAJORMINOR@,g \
                -e s,gst-launch,gst-launch-@GST_MAJORMINOR@,g \