automake: silence make output
authorJeremy Kerr <jk@ozlabs.org>
Fri, 1 Aug 2014 04:32:31 +0000 (12:32 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Tue, 5 Aug 2014 02:31:28 +0000 (10:31 +0800)
Currently, we get a lot of noise out of the build process; automake
supports V={0,1}, which we can use to suppress the output a little.

This needs a few cleanups for custom commands.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
configure.ac
discover/grub2/Makefile.am
test/parser/Makefile.am
test/urls/Makefile.am

index 9511fefa8e14bfe659424d5ec760b5493dce9b9d..b540819fe14d54ca08d62a8829e053f333d6d3d8 100644 (file)
@@ -35,6 +35,8 @@ AM_GNU_GETTEXT([external])
 AM_GNU_GETTEXT_VERSION(0.18.1)
 LT_INIT
 
+AM_SILENT_RULES([yes])
+
 AX_WITH_CURSES
 AX_WITH_CURSES_MENU
 AX_WITH_CURSES_FORM
index dda68354246e31102f78446035710b20bef0d673..0bff9fa772d4c98d8847028b23f67f97080ce1c9 100644 (file)
 
 noinst_PROGRAMS += discover/grub2/grub2-parser.ro
 
-discover/grub2/grub2-parser.ro$(EXEEXT): \
-               $(discover_grub2_grub2_parser_ro_OBJECTS)
-       $(LD) -r -o $@ $^
-
 discover_grub2_grub2_parser_ro_SOURCES = \
        discover/grub2/builtins.c \
        discover/grub2/env.c \
@@ -39,12 +35,13 @@ CLEANFILES += \
        discover/grub2/lexer.c \
        discover/grub2/lexer.h
 
-
 discover_grub2_grub2_parser_ro_CPPFLAGS = \
        $(AM_CPPFLAGS) \
        -I$(top_srcdir)/discover/grub2 \
        -I$(top_builddir)/discover/grub2
 
+discover_grub2_grub2_parser_ro_LINK = \
+       $(LD) -r -o $@
 
 # ylwrap doesn't handle flex header files well; use our own rule here.
 discover/grub2/lexer.h discover/grub2/lexer.c: \
index 685d7acbbd1c6ad30e1134627f1b44fdba869cf1..75411496526f2034874a50984fb9e60f3b7a2233 100644 (file)
@@ -81,7 +81,7 @@ $(parser_TESTS): %: %.embedded-config.o test/parser/libtest.ro
 extract_config = $(srcdir)/test/parser/extract-config.awk
 
 %.embedded-config.c: %.c $(extract_config)
-       $(AWK) -f $(extract_config) $< > $@
+       $(AM_V_GEN)$(AWK) -f $(extract_config) $< > $@
 
 # objects under test
 
@@ -112,7 +112,7 @@ test_parser_libtest_ro_CPPFLAGS = \
 
 test/parser/libtest.ro$(EXEEXT): $(test_parser_libtest_ro_OBJECTS) \
                                           $(test_parser_libtest_ro_LDADD)
-       $(LD) -o $@ -r $^
+       $(AM_V_GEN)$(LD) -o $@ -r $^
 
 EXTRA_DIST += $(check_DATA) $(extract_config)
 
index 47040ae46d142a4ecb3a0719751ab8a4b883e8f6..ad670b87cb6f2ff992bdee22b04e2032e3e264d8 100644 (file)
@@ -45,10 +45,9 @@ edit = sed \
 EXTRA_DIST += $(url_TESTS) test/urls/run-url-test.in
 
 test/urls/run-url-test: $(srcdir)/test/urls/run-url-test.in
-       rm -f $@ $@.tmp
-       $(edit) $(srcdir)/$@.in >$@.tmp
-       chmod +x $@.tmp
-       mv $@.tmp $@
+       $(AM_V_GEN)$(edit) $(srcdir)/$@.in > $@.tmp && \
+               chmod +x $@.tmp && \
+               mv $@.tmp $@
 
 CLEANFILES += test/urls/run-url-test