[EXTRAS] inotify extra details
[gnome.gobject-introspection] / Makefile.introspection
index 582bf84..9616294 100644 (file)
@@ -37,7 +37,6 @@
 
 # Make sure the required variables are set, these should under normal
 # circumstances come from introspection.m4
-$(if $(INTROSPECTION_GIRS),,$(error Need to define INTROSPECTION_GIRS))
 $(if $(INTROSPECTION_SCANNER),,$(error Need to define INTROSPECTION_SCANNER))
 $(if $(INTROSPECTION_COMPILER),,$(error Need to define INTROSPECTION_COMPILER))
 
@@ -63,6 +62,17 @@ _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_verbosity = $(if $(AM_DEFAULT_VERBOSITY),$(AM_DEFAULT_VERBOSITY),1)
+
+_gir_silent_scanner = $(_gir_silent_scanner_$(V))
+_gir_silent_scanner_ = $(_gir_silent_scanner_$(_gir_verbosity))
+_gir_silent_scanner_0 = @echo "  GISCAN $(1)";
+
+_gir_silent_compiler = $(_gir_silent_compiler_$(V))
+_gir_silent_compiler_ = $(_gir_silent_compiler_$(_gir_verbosity))
+_gir_silent_compiler_0 = @echo "  GICOMP $(1)";
+
 #
 # Creates a GIR by scanning C headers/sources
 # $(1) - Name of the gir file (output)
@@ -105,7 +115,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) \
@@ -127,7 +137,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.