* doc/local.mk, src/local.mk, examples/calc++/Makefile.am: Use
$(AM_V_GEN) and $(AM_V_at) where appropriate.
# Create $@~ which is the previous contents. Don't use `mv' here so
# that even if we are interrupted, the file is still available for
# diff in the next run. Note that $@ might not exist yet.
# Create $@~ which is the previous contents. Don't use `mv' here so
# that even if we are interrupted, the file is still available for
# diff in the next run. Note that $@ might not exist yet.
- { test ! -f $@ || cat $@; } >$@~
- test ! -f $@.tmp || rm -f $@.tmp
- src/bison$(EXEEXT) --help | \
+ $(AM_V_GEN){ test ! -f $@ || cat $@; } >$@~
+ $(AM_V_at)test ! -f $@.tmp || rm -f $@.tmp
+ $(AM_V_at)src/bison$(EXEEXT) --help | \
perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
- diff -u $@~ $@.tmp || true
- mv $@.tmp $@
+ $(AM_V_at)diff -u $@~ $@.tmp || true
+ $(AM_V_at)mv $@.tmp $@
MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)
## ---------- ##
MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)
## ---------- ##
CLEANFILES += doc/refcard.dvi doc/refcard.log doc/refcard.ps
doc/refcard.dvi: doc/refcard.tex
CLEANFILES += doc/refcard.dvi doc/refcard.log doc/refcard.ps
doc/refcard.dvi: doc/refcard.tex
- cd doc && tex refcard.tex
+ $(AM_V_GEN)cd doc && tex refcard.tex
doc/refcard.ps: doc/refcard.dvi
doc/refcard.ps: doc/refcard.dvi
EXTRA_DIST += $(top_srcdir)/doc/bison.help
MAINTAINERCLEANFILES += $(top_srcdir)/doc/bison.help
$(top_srcdir)/doc/bison.help: src/bison$(EXEEXT)
EXTRA_DIST += $(top_srcdir)/doc/bison.help
MAINTAINERCLEANFILES += $(top_srcdir)/doc/bison.help
$(top_srcdir)/doc/bison.help: src/bison$(EXEEXT)
- $< --version >doc/bison.help.t
- $< --help >>doc/bison.help.t
- $(top_srcdir)/build-aux/move-if-change doc/bison.help.t $@
+ $(AM_V_GEN)$< --version >doc/bison.help.t
+ $(AM_V_at)$< --help >>doc/bison.help.t
+ $(AM_V_at)$(top_srcdir)/build-aux/move-if-change doc/bison.help.t $@
# Depend on configure to get version number changes.
$(top_srcdir)/doc/bison.1: doc/bison.help doc/bison.x $(top_srcdir)/configure
# Depend on configure to get version number changes.
$(top_srcdir)/doc/bison.1: doc/bison.help doc/bison.x $(top_srcdir)/configure
- @echo "Updating man page $@"
- $(HELP2MAN) \
- --include=$(top_srcdir)/doc/bison.x \
+ $(AM_V_GEN)$(HELP2MAN) \
+ --include=$(top_srcdir)/doc/bison.x \
--output=$@.t src/bison$(EXEEXT)
--output=$@.t src/bison$(EXEEXT)
- if $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
+ $(AM_V_at)if $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
$(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \
$(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \
- touch $@; \
- else \
- mv $@.t $@; \
+ touch $@; \
+ else \
+ mv $@.t $@; \
nodist_man_MANS = doc/yacc.1
nodist_man_MANS = doc/yacc.1
doc: html
html-local: doc/Doxyfile
doc: html
html-local: doc/Doxyfile
+ $(AM_V_GEN) cd doc && $(DOXYGEN)
edit = sed -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
-e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
edit = sed -e 's,@PACKAGE_NAME\@,$(PACKAGE_NAME),g' \
-e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' \
# Sed is used to generate Doxyfile from Doxyfile.in instead of
# configure, because the former is way faster than the latter.
doc/Doxyfile: $(top_srcdir)/doc/Doxyfile.in
# Sed is used to generate Doxyfile from Doxyfile.in instead of
# configure, because the former is way faster than the latter.
doc/Doxyfile: $(top_srcdir)/doc/Doxyfile.in
- $(edit) $(top_srcdir)/doc/Doxyfile.in >doc/Doxyfile
+ $(AM_V_GEN) $(edit) $(top_srcdir)/doc/Doxyfile.in >doc/Doxyfile
BISON_IN = $(top_srcdir)/tests/bison.in
$(BISON): $(BISON_IN)
BISON_IN = $(top_srcdir)/tests/bison.in
$(BISON): $(BISON_IN)
- cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) tests/bison
+ $(AM_V_GEN)cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) tests/bison
## ------------ ##
## Extracting. ##
## ------------ ##
## Extracting. ##
extexi = $(top_srcdir)/examples/extexi
# Extract in src.
$(srcdir)/calc.stamp: $(doc) $(extexi)
extexi = $(top_srcdir)/examples/extexi
# Extract in src.
$(srcdir)/calc.stamp: $(doc) $(extexi)
- rm -f $@ $@.tmp
- touch $@.tmp
- cd $(srcdir) && \
+ $(AM_V_GEN)rm -f $@ $@.tmp
+ $(AM_V_at)touch $@.tmp
+ $(AM_V_at)cd $(srcdir) && \
$(AWK) -f ../extexi -v VERSION="$(VERSION)" \
../../doc/bison.texinfo -- calc++-parser.yy \
calc++-scanner.ll calc++.cc calc++-driver.hh calc++-driver.cc
$(AWK) -f ../extexi -v VERSION="$(VERSION)" \
../../doc/bison.texinfo -- calc++-parser.yy \
calc++-scanner.ll calc++.cc calc++-driver.hh calc++-driver.cc
$(calc_extracted): $(srcdir)/calc.stamp
$(calc_extracted): $(srcdir)/calc.stamp
# Don't depend on $(BISON) otherwise we would rebuild these files
# in srcdir, including during distcheck, which is forbidden.
$(srcdir)/calc++-parser.stamp: $(srcdir)/calc++-parser.yy $(BISON_IN)
# Don't depend on $(BISON) otherwise we would rebuild these files
# in srcdir, including during distcheck, which is forbidden.
$(srcdir)/calc++-parser.stamp: $(srcdir)/calc++-parser.yy $(BISON_IN)
- @rm -f calc++-parser.tmp
- @touch calc++-parser.tmp
- $(BISON) -d -ra -o $(srcdir)/calc++-parser.cc \
+ $(AM_V_GEN)rm -f calc++-parser.tmp
+ $(AM_V_at)touch calc++-parser.tmp
+ $(AM_V_at)$(BISON) -d -ra -o $(srcdir)/calc++-parser.cc \
$(srcdir)/calc++-parser.yy
$(srcdir)/calc++-parser.yy
- @mv -f calc++-parser.tmp $@
+ $(AM_V_at)mv -f calc++-parser.tmp $@
$(calc_sources_generated): $(srcdir)/calc++-parser.stamp
$(calc_sources_generated): $(srcdir)/calc++-parser.stamp
- @if test -f $@; then :; else \
+ $(AM_V_GEN)if test -f $@; then :; else \
rm -f $(srcdir)/calc++-parser.stamp && \
$(MAKE) $(AM_MAKEFLAGS) $(srcdir)/calc++-parser.stamp; \
fi
rm -f $(srcdir)/calc++-parser.stamp && \
$(MAKE) $(AM_MAKEFLAGS) $(srcdir)/calc++-parser.stamp; \
fi
check_PROGRAMS = calc++
calc_sources_extracted = $(srcdir)/calc++-scanner.ll $(srcdir)/calc++.cc \
check_PROGRAMS = calc++
calc_sources_extracted = $(srcdir)/calc++-scanner.ll $(srcdir)/calc++.cc \
- $(srcdir)/calc++-driver.hh $(srcdir)/calc++-driver.cc
+ $(srcdir)/calc++-driver.hh $(srcdir)/calc++-driver.cc
calc_extracted = $(calc_sources_extracted) $(srcdir)/calc++-parser.yy
calc_sources_generated = \
calc_extracted = $(calc_sources_extracted) $(srcdir)/calc++-parser.yy
calc_sources_generated = \
- $(srcdir)/stack.hh $(srcdir)/position.hh $(srcdir)/location.hh \
- $(srcdir)/calc++-parser.hh $(srcdir)/calc++-parser.cc
+ $(srcdir)/stack.hh $(srcdir)/position.hh $(srcdir)/location.hh \
+ $(srcdir)/calc++-parser.hh $(srcdir)/calc++-parser.cc
calc___SOURCES = $(calc_sources_extracted) $(calc_sources_generated)
calc___SOURCES = $(calc_sources_extracted) $(calc_sources_generated)
MOSTLYCLEANFILES += src/yacc
src/yacc:
MOSTLYCLEANFILES += src/yacc
src/yacc:
- rm -f $@ $@.tmp
- echo '#! /bin/sh' >$@.tmp
- echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
- chmod a+x $@.tmp
- mv $@.tmp $@
+ $(AM_V_GEN)rm -f $@ $@.tmp
+ $(AM_V_at)echo '#! /bin/sh' >$@.tmp
+ $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@.tmp
+ $(AM_V_at)chmod a+x $@.tmp
+ $(AM_V_at)mv $@.tmp $@