[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] build: prefix a few rules with $(AM_V_GEN)
From: |
Jim Meyering |
Subject: |
[PATCH] build: prefix a few rules with $(AM_V_GEN) |
Date: |
Thu, 27 Aug 2009 10:30:49 +0200 |
FYI,
>From de619c8fa5ea4e5cd3ca4a9632af81a487c33c0b Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Thu, 27 Aug 2009 10:17:55 +0200
Subject: [PATCH] build: prefix a few rules with $(AM_V_GEN)
* Makefile.am (.version, dist-hook, gen-ChangeLog): Use $(AM_V_GEN)
and $(AM_V_at), so that automake's silent-rules option (make V=1/V=0)
now controls whether the commands are printed at build time.
(THANKS-to-translators, check-ls-dircolors): Likewise.
---
Makefile.am | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index 57b3e33..603a444 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -98,20 +98,20 @@ rm_subst = \
BUILT_SOURCES = .version
.version:
- echo $(VERSION) > address@hidden && mv address@hidden $@
+ $(AM_V_GEN)echo $(VERSION) > address@hidden && mv address@hidden $@
# Arrange so that .tarball-version appears only in the distribution
# tarball, and never in a checked-out repository.
# The perl substitution is to change some key uses of "rm" to "/bin/rm".
# See the rm_subst comment for details.
dist-hook: gen-ChangeLog
- echo $(VERSION) > $(distdir)/.tarball-version
- perl -pi -e '$(rm_subst)' $(distdir)/src/Makefile.in
+ $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
+ $(AM_V_at)perl -pi -e '$(rm_subst)' $(distdir)/src/Makefile.in
gen_start_date = 2008-02-08
.PHONY: gen-ChangeLog
gen-ChangeLog:
- if test -d .git; then \
+ $(AM_V_GEN)if test -d .git; then \
$(top_srcdir)/build-aux/gitlog-to-changelog \
--since=$(gen_start_date) > $(distdir)/cl-t; \
rm -f $(distdir)/ChangeLog; \
@@ -125,7 +125,7 @@ distcheck-hook: check-ls-dircolors
DISTCLEANFILES = VERSION
MAINTAINERCLEANFILES = THANKS-to-translators
THANKS-to-translators: po/LINGUAS THANKStt.in
- ( \
+ $(AM_V_GEN)( \
cat $(srcdir)/THANKStt.in; \
for lang in `cat $(srcdir)/po/LINGUAS`; do \
echo http://translationproject.org/team/$$lang.html; \
@@ -136,7 +136,7 @@ THANKS-to-translators: po/LINGUAS THANKStt.in
# remain in sync.
.PHONY: check-ls-dircolors
check-ls-dircolors:
- dc=$$(sed -n '/static.*ls_codes\[/,/};'/p \
+ $(AM_V_GEN)dc=$$(sed -n '/static.*ls_codes\[/,/};'/p \
$(srcdir)/src/dircolors.c \
|sed -n '/^ *"/p'|tr , '\n'|sed 's/^ *//' \
|sed -n 's/^"\(..\)"/\1/p'|sort -u); \
--
1.6.4.1.359.g4fc77
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] build: prefix a few rules with $(AM_V_GEN),
Jim Meyering <=