silent rules in build

Thomas Graf tgraf at infradead.org
Wed Mar 16 08:23:05 EDT 2011


On Thu, Feb 17, 2011 at 09:28:50PM -0800, Reuben Hawkins wrote:
> Attached is a match for configure.in and lib/Makefile.am which
> allows for silent rules...  It just makes the build output
> cleaner...

Applied slightly modified version (see below)

Thanks Reuben!

commit b5c474e533fa3aceaebf3189acd3b5643092845b
Author: Reuben Hawkins <reuben at techsoft3d.com>
Date:   Thu Feb 17 21:28:50 2011 -0800

    allowing silent rules in build

diff --git a/configure.in b/configure.in
index c58a316..34ece73 100644
--- a/configure.in
+++ b/configure.in
@@ -13,6 +13,7 @@ AC_INIT(libnl, 2.1, tgraf at suug.ch)
 AC_CONFIG_HEADERS([lib/defs.h])
 AC_CONFIG_MACRO_DIR([m4])
 AM_INIT_AUTOMAKE([-Wall foreign subdir-objects])
+m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES(yes)], [])
 
 AC_PROG_CC
 AM_PROG_CC_C_O
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 13da8c2..ccab7ca 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -30,16 +30,16 @@ CLEANFILES = \
 # Hack to avoid using ylwrap. It does not function correctly in combination
 # with --header-file=
 route/pktloc_grammar.c: route/pktloc_grammar.l
-       $(LEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
+       $(AM_V_GEN) $(LEX) --header-file=route/pktloc_grammar.h $(LFLAGS) -o $@ $^
 
 route/pktloc_syntax.c: route/pktloc_syntax.y
-       $(YACC) -d $(YFLAGS) -o $@ $^
+       $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^
 
 route/cls/ematch_grammar.c: route/cls/ematch_grammar.l
-       $(LEX) --header-file=route/cls/ematch_grammar.h $(LFLAGS) -o $@ $^
+       $(AM_V_GEN) $(LEX) --header-file=route/cls/ematch_grammar.h $(LFLAGS) -o $@ $^
 
 route/cls/ematch_syntax.c: route/cls/ematch_syntax.y
-       $(YACC) -d $(YFLAGS) -o $@ $^
+       $(AM_V_GEN) $(YACC) -d $(YFLAGS) -o $@ $^
 
 libnl_route_la_LIBADD  = libnl.la
 libnl_route_la_SOURCES = \





More information about the libnl mailing list