summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2009-11-02 22:23:17 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2009-11-02 22:23:17 +0000
commitc551732a94d1e7b9ae8e6afad668419b0d5bf0c2 (patch)
treef3bd1bbf6171a82c842ea733f39839209eab9894 /build
parent0beab2c140806a52534423afbb22a535295be596 (diff)
downloadclutter-gtk-c551732a94d1e7b9ae8e6afad668419b0d5bf0c2.tar.gz
build: Use AM_SILENT_RULES if available
If we are building against an Automake 1.11 we should be using the AM_SILENT_RULES instead of Shave. If the Automake version is older than 1.11 then fall back to Shave and keep the build clean.
Diffstat (limited to 'build')
-rw-r--r--build/autotools/Makefile.am3
-rw-r--r--build/autotools/Makefile.am.silent17
2 files changed, 19 insertions, 1 deletions
diff --git a/build/autotools/Makefile.am b/build/autotools/Makefile.am
index b911023..6ea38eb 100644
--- a/build/autotools/Makefile.am
+++ b/build/autotools/Makefile.am
@@ -3,6 +3,7 @@ EXTRA_DIST = \
shave.in \
shave.m4 \
introspection.m4 \
- as-compiler-flag.m4
+ as-compiler-flag.m4 \
+ Makefile.am.silent
DISTCLEANFILES = shave-libtool shave
diff --git a/build/autotools/Makefile.am.silent b/build/autotools/Makefile.am.silent
new file mode 100644
index 0000000..249f6af
--- /dev/null
+++ b/build/autotools/Makefile.am.silent
@@ -0,0 +1,17 @@
+# custom rules for quiet builds
+
+if USE_SHAVE
+QUIET_GEN = $(Q:@=@echo ' GEN '$@;)
+QUIET_LN = $(Q:@=@echo ' LN '$@;)
+QUIET_RM = $(Q:@=@echo ' RM '$@;)
+else
+QUIET_GEN = $(AM_V_GEN)
+
+QUIET_LN = $(QUIET_LN_$(V))
+QUIET_LN_ = $(QUIET_LN_$(AM_DEFAULT_VERBOSITY))
+QUIET_LN_0 = @echo ' LN '$@;
+
+QUIET_RM = $(QUIET_RM_$(V))
+QUIET_RM_ = $(QUIET_RM_$(AM_DEFAULT_VERBOSITY))
+QUIET_RM_0 = @echo ' RM '$@;
+endif # USE_SHAVE