[x264-devel] [PATCH 7/9] Add autotools-style silent build rules
Stephen Hutchinson
qyot27 at gmail.com
Sat Apr 26 23:45:21 CEST 2014
From: Mans Rullgard <mans at mansr.com>
---
Makefile | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/Makefile b/Makefile
index ee62f57..07c0f5e 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,21 @@
include config.mak
+# Silent make rules
+ifndef V
+Q = @
+ECHO = printf "$(1)\t%s\n" $(2)
+BRIEF = CC AS YASM AR LD STRIP CP RC
+SILENT = RM RANLIB
+
+MSG = $@
+M = @$(call ECHO,$(TAG),$@);
+$(foreach VAR,$(BRIEF), \
+ $(eval override $(VAR) = @$$(call ECHO,$(VAR),$$(MSG)); $($(VAR))))
+$(foreach VAR,$(SILENT),$(eval override $(VAR) = @$($(VAR))))
+$(eval INSTALL = @$(call ECHO,INSTALL,$$(^:$(SRC_DIR)/%=%)); $(INSTALL))
+endif
+
vpath %.c $(SRCPATH)
vpath %.h $(SRCPATH)
vpath %.S $(SRCPATH)
--
1.9.1
More information about the x264-devel
mailing list