diff options
author | Johan Dahlin <johan@gnome.org> | 2009-12-30 23:52:22 +0100 |
---|---|---|
committer | Johan Dahlin <johan@gnome.org> | 2009-12-30 23:52:22 +0100 |
commit | c1836c4e455eb4c98f3a2a5ce97995e070cf9377 (patch) | |
tree | e219c5c5ed689697082a0d43209805135b517195 | |
parent | 2bab940ad9dd947379188cfa6f5990352660cd25 (diff) | |
download | gobject-introspection-c1836c4e455eb4c98f3a2a5ce97995e070cf9377.tar.gz |
Make compiler output with silent-rules prettier
This is only supported with automake 1.11 or newer, older versions
should default to showing nothing for now.
-rw-r--r-- | Makefile.introspection | 13 | ||||
-rw-r--r-- | common.mk | 2 |
2 files changed, 12 insertions, 3 deletions
diff --git a/Makefile.introspection b/Makefile.introspection index 980d9828..7bd0efe7 100644 --- a/Makefile.introspection +++ b/Makefile.introspection @@ -62,6 +62,15 @@ _gir_includes = $(foreach include,$($(_gir_name)_INCLUDES),--include=$(include)) # Reuse the LIBTOOL variable from by automake if it's set _gir_libtool = $(if $(LIBTOOL),--libtool="$(LIBTOOL)") +# Macros for AM_SILENT_RULES prettiness +_gir_silent_scanner = $(_gir_silent_scanner_$(V)) +_gir_silent_scanner_ = $(_gir_silent_scanner_$(AM_DEFAULT_VERBOSITY)) +_gir_silent_scanner_0 = @echo " GISCAN $(1)"; + +_gir_silent_compiler = $(_gir_silent_compiler_$(V)) +_gir_silent_compiler_ = $(_gir_silent_compiler_$(AM_DEFAULT_VERBOSITY)) +_gir_silent_compiler_0 = @echo " GICOMP $(1)"; + # # Creates a GIR by scanning C headers/sources # $(1) - Name of the gir file (output) @@ -104,7 +113,7 @@ $(if $(or $($(_gir_name)_LIBS), # sure these are built before running the scanner. Libraries and programs # needs to be added manually. $(1): $$($(_gir_name)_FILES) $(INTROSPECTION_PARSER) - $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) \ + $(_gir_silent_scanner) $(INTROSPECTION_SCANNER) $(INTROSPECTION_SCANNER_ARGS) \ --namespace=$(_gir_namespace) \ --nsversion=$(_gir_version) \ $(_gir_libtool) \ @@ -126,7 +135,7 @@ $(foreach gir,$(INTROSPECTION_GIRS),$(eval $(call introspection-scanner,$(gir))) # $(2): typelib filename (output) # define introspection-compiler -$(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. $(1) -o $(2) +$(_gir_silent_compiler) $(INTROSPECTION_COMPILER) $(INTROSPECTION_COMPILER_ARGS) --includedir=. $(1) -o $(2) endef # Simple rule to compile a typelib. @@ -4,7 +4,7 @@ SCANNER_ENV = env PYTHONPATH=$(SCANNER_PYTHONPATH) \ UNINSTALLED_INTROSPECTION_SRCDIR=$(top_srcdir) \ UNINSTALLED_INTROSPECTION_BUILDDIR=$(top_builddir) SCANNER_ARGS = -v --add-include-path=$(top_builddir)/gir --add-include-path=. -SCANNER = $(AM_V_GEN) env LPATH=.libs $(CHECK_DEBUG) $(SCANNER_ENV) $(SCANNER_BIN) $(SCANNER_ARGS) +SCANNER = env LPATH=.libs $(CHECK_DEBUG) $(SCANNER_ENV) $(SCANNER_BIN) $(SCANNER_ARGS) SCANNER_LIBS = \ $(top_srcdir)/giscanner/*.py \ $(top_builddir)/giscanner/libgiscanner.la \ |