summaryrefslogtreecommitdiff
path: root/m4/quiet-rule.m4
diff options
context:
space:
mode:
authorjk7744.park <jk7744.park@samsung.com>2015-09-08 22:07:42 +0900
committerjk7744.park <jk7744.park@samsung.com>2015-09-08 22:07:42 +0900
commit4732847654ed74ed893b7ea088805832fd91cc18 (patch)
tree393207d68983c3b587733b83714bef2de2457025 /m4/quiet-rule.m4
downloadxmlstarlet-accepted/tizen_2.4_mobile.tar.gz
xmlstarlet-accepted/tizen_2.4_mobile.tar.bz2
xmlstarlet-accepted/tizen_2.4_mobile.zip
Diffstat (limited to 'm4/quiet-rule.m4')
-rw-r--r--m4/quiet-rule.m412
1 files changed, 12 insertions, 0 deletions
diff --git a/m4/quiet-rule.m4 b/m4/quiet-rule.m4
new file mode 100644
index 0000000..29004e6
--- /dev/null
+++ b/m4/quiet-rule.m4
@@ -0,0 +1,12 @@
+# serial 1 -*- mode: autoconf -*-
+# SILENT_RULE(varname, [echo = varname])
+# defines V_varname to use for silent make rules
+AC_DEFUN([np_SILENT_RULE],[dnl
+m4_pushdef([varname], $1)dnl
+m4_pushdef([echoname], [m4_default($2, varname)])dnl
+# make silent rule for $1
+AC_SUBST(V_[]varname, ["\$(V_[]varname[]_$AM_V)"])dnl
+AC_SUBST(V_[]varname[]_, ["\$(V_[]varname[]_$AM_DEFAULT_VERBOSITY)"])dnl
+AC_SUBST(V_[]varname[]_0, ['@echo " echoname [$]@";'])dnl
+m4_popdef([varname], [echoname])dnl
+])