bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH mig 2/2] Add silent rules support if available and disable it by


From: Guillem Jover
Subject: [PATCH mig 2/2] Add silent rules support if available and disable it by default
Date: Tue, 30 Aug 2011 03:14:19 +0200

* configure.ac (AM_SILENT_RULES): Add silent rules support if available,
  and disable it by default.
* Makefile.am (AWK_V, AWK_V_, AWK_V_0): New variables.
(.sym.symc): Use AWK_V in front of AWK.
(.symc.symo): Use AM_V_CC in front of TARGET_CC.
(.symo.h): Use AM_V_GEN in front of sed.
---
 Makefile.am  |   10 +++++++---
 configure.ac |    3 +++
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 5de3fde..a28fa3e 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -7,6 +7,10 @@ EXTRA_DIST = gensym.awk cpu.sym
 
 CLEANFILES = cpu.h *.sym[co]
 
+AWK_V = $(AWK_V_$(V))
+AWK_V_ = $(AWK_V_$(AM_DEFAULT_VERBOSITY))
+AWK_V_0 = @echo "  AWK    $@";
+
 migcom_SOURCES = alloc.h boolean.h error.c error.h global.c global.h   \
                 header.c lexxer.h lexxer.l message.h mig_string.h      \
                 migcom.c parser.h parser.y routine.c routine.h         \
@@ -17,11 +21,11 @@ migcom_LDADD = @ALLOCA@ @LEXLIB@
 SUFFIXES = .h .symo .symc .sym
 
 .sym.symc:
-       $(AWK) -f $(srcdir)/gensym.awk $< > $@
+       $(AWK_V) $(AWK) -f $(srcdir)/gensym.awk $< > $@
 .symc.symo:
-       $(TARGET_CC) -S $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -x c -o $@ $<
+       $(AM_V_CC) $(TARGET_CC) -S $(TARGET_CPPFLAGS) $(TARGET_CFLAGS) -x c -o 
$@ $<
 .symo.h:
-       sed -e '/^[^*].*$$/d' -e 's/^[*]/#define/' -e 's/mAgIc[^-0-9]*//' \
+       $(AM_V_GEN) sed -e '/^[^*].*$$/d' -e 's/^[*]/#define/' -e 
's/mAgIc[^-0-9]*//' \
            $< > $@
 cpu.symc: $(srcdir)/gensym.awk
 
diff --git a/configure.ac b/configure.ac
index b78a71a..4b2852e 100644
--- a/configure.ac
+++ b/configure.ac
@@ -18,6 +18,9 @@ dnl Don't define `PACKAGE' and `VERSION'.
   [no-define]
 )
 
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([no])],
+                            [AC_SUBST([AM_DEFAULT_VERBOSITY], [1])])
+
 dnl Checks for programs.
 AC_PROG_CC
 AC_PROG_CPP
-- 
1.7.5.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]