diff options
author | Jim Meyering <meyering@redhat.com> | 2009-04-24 15:16:46 +0200 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2009-04-24 15:16:46 +0200 |
commit | 207daac5c1e9b22348d65439281f4da6dce9bdb2 (patch) | |
tree | f74f2c884f9d5e8dcbe6a614707660ca88f73773 /src | |
parent | 98dbd8cc539cb559f5d264f644d9295fded8a507 (diff) | |
download | coreutils-207daac5c1e9b22348d65439281f4da6dce9bdb2.tar.xz |
build: use automake's new $(AM_V_GEN) and $(AM_V_at) variables
* src/Makefile.am (dircolors.h, wheel-size.h, wheel.h, fs.h):
(version.c, version.h): Mark with $(AM_V_GEN) and $(AM_V_at),
so that the latest automake prints "GEN $@" by default.
Diffstat (limited to 'src')
-rw-r--r-- | src/Makefile.am | 56 |
1 files changed, 31 insertions, 25 deletions
diff --git a/src/Makefile.am b/src/Makefile.am index a266d7b31..1997573f0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -290,26 +290,29 @@ editpl = sed -e 's,@''PERL''@,$(PERL),g' BUILT_SOURCES += dircolors.h dircolors.h: dcgen dircolors.hin - @rm -f $@ $@-t - $(PERL) -w -- $(srcdir)/dcgen $(srcdir)/dircolors.hin > $@-t - @chmod a-w $@-t - mv $@-t $@ + $(AM_V_GEN) + $(AM_V_at)rm -f $@ $@-t + $(AM_V_at)$(PERL) -w -- $(srcdir)/dcgen $(srcdir)/dircolors.hin > $@-t + $(AM_V_at)chmod a-w $@-t + $(AM_V_at)mv $@-t $@ wheel_size = 5 BUILT_SOURCES += wheel-size.h wheel-size.h: Makefile.am - @rm -f $@ $@-t - echo '#define WHEEL_SIZE $(wheel_size)' > $@-t - @chmod a-w $@-t - mv $@-t $@ + $(AM_V_GEN) + $(AM_V_at)rm -f $@ $@-t + $(AM_V_at)echo '#define WHEEL_SIZE $(wheel_size)' > $@-t + $(AM_V_at)chmod a-w $@-t + $(AM_V_at)mv $@-t $@ BUILT_SOURCES += wheel.h wheel.h: wheel-gen.pl Makefile.am - @rm -f $@ $@-t - $(srcdir)/wheel-gen.pl $(wheel_size) > $@-t - @chmod a-w $@-t - mv $@-t $@ + $(AM_V_GEN) + $(AM_V_at)rm -f $@ $@-t + $(AM_V_at)$(srcdir)/wheel-gen.pl $(wheel_size) > $@-t + $(AM_V_at)chmod a-w $@-t + $(AM_V_at)mv $@-t $@ # false exits nonzero even with --help or --version. # test doesn't support --help or --version. @@ -318,25 +321,28 @@ AM_INSTALLCHECK_STD_OPTIONS_EXEMPT = false test BUILT_SOURCES += fs.h fs.h: stat.c extract-magic - rm -f $@ - $(PERL) $(srcdir)/extract-magic $(srcdir)/stat.c > $@t - @chmod a-w $@t - mv $@t $@ + $(AM_V_GEN) + $(AM_V_at)rm -f $@ + $(AM_V_at)$(PERL) $(srcdir)/extract-magic $(srcdir)/stat.c > $@t + $(AM_V_at)chmod a-w $@t + $(AM_V_at)mv $@t $@ BUILT_SOURCES += version.c version.c: Makefile - rm -f $@ - printf '#include <config.h>\n' > $@t - printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t - @chmod a-w $@t - mv $@t $@ + $(AM_V_GEN) + $(AM_V_at)rm -f $@ + $(AM_V_at)printf '#include <config.h>\n' > $@t + $(AM_V_at)printf 'char const *Version = "$(PACKAGE_VERSION)";\n' >> $@t + $(AM_V_at)chmod a-w $@t + $(AM_V_at)mv $@t $@ BUILT_SOURCES += version.h version.h: Makefile - rm -f $@ - printf 'extern char const *Version;\n' > $@t - @chmod a-w $@t - mv $@t $@ + $(AM_V_GEN) + $(AM_V_at)rm -f $@ + $(AM_V_at)printf 'extern char const *Version;\n' > $@t + $(AM_V_at)chmod a-w $@t + $(AM_V_at)mv $@t $@ DISTCLEANFILES = version.c version.h MAINTAINERCLEANFILES = $(BUILT_SOURCES) |