.PHONY: maintainer-check
maintainer-check:
- cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
+ $(AM_V_GEN)cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
.PHONY: maintainer-push-check
maintainer-push-check:
- cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
+ $(AM_V_GEN)cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
.PHONY: maintainer-xml-check
maintainer-xml-check:
- cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
+ $(AM_V_GEN)cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
# See comments in build-aux/git-version-gen. However, we make .version depend
# on configure so that .version and VERSION/PACKAGE_VERSION stay in sync in the
# pass incorrectly.
BUILT_SOURCES = $(top_srcdir)/.version
$(top_srcdir)/.version: configure
- echo $(VERSION) > $@-t && mv $@-t $@
+ $(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@
dist-hook: gen-ChangeLog
- echo $(VERSION) > $(distdir)/.tarball-version
+ $(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
.PHONY: update-b4-copyright update-package-copyright-year
update-b4-copyright:
- find data -type f \
+ $(AM_V_GEN)find data -type f \
| grep -v -E '^data/bison.m4$$' \
| xargs $(build_aux)/$@
@echo 'warning: src/parse-gram.[hc] may need to be regenerated.'
update-package-copyright-year:
- $(build_aux)/$@ configure.ac
+ $(AM_V_GEN)$(build_aux)/$@ configure.ac
gen_start_date = 2012-01-16
.PHONY: gen-ChangeLog
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
$(srcdir)/cross-options.texi: $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
- mv -f $@ $@~ || : >$@~
- -rm -f $@.tmp
- cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) bison
- $(top_builddir)/src/bison --help \
+ $(AM_V_GEN)mv -f $@ $@~ || : >$@~
+ $(AM_V_at)rm -f $@.tmp
+ $(AM_V_at)cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) bison
+ $(AM_V_at)$(top_builddir)/src/bison --help \
| 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 = $(srcdir)/cross-options.texi
## ---------- ##
CLEANFILES += refcard.dvi refcard.log refcard.ps
refcard.dvi: refcard.tex
- tex refcard.tex
+ $(AM_V_GEN)tex refcard.tex
refcard.ps: refcard.dvi
PREPATH = $(top_builddir)/src
.x.1:
- @program=`expr "/$*" : '.*/\(.*\)'` && \
+ $(AM_V_GEN)program=`expr "/$*" : '.*/\(.*\)'` && \
save_IFS=$IFS; \
IFS=$(PATH_SEPARATOR); \
for dir in $(PREPATH); do \
echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \
(cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
done
- @echo "Updating man page $@"
- PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH"; \
+ $(AM_V_at)PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH"; \
export PATH; \
$(HELP2MAN) \
--include=$*.x \
--include=$(srcdir)/common.x \
--output=$@.t `echo '$*' | sed 's,.*/,,'`
- 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 \
touch $@; \
else \
mv $@.t $@; \
fi
- rm -f $@*.t
+ $(AM_V_at)rm -f $@*.t
nodist_man_MANS = yacc.1
# Sed is used to generate Doxyfile from Doxyfile.in instead of
# configure, because the former is way faster than the latter.
Doxyfile: $(srcdir)/Doxyfile.in
- $(edit) $(srcdir)/Doxyfile.in >Doxyfile
+ $(AM_V_GEN)$(edit) $(srcdir)/Doxyfile.in >Doxyfile
CLEANDIRS += html latex
BISON_IN = $(top_srcdir)/tests/bison.in
$(BISON): $(BISON_IN)
- cd $(top_builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) bison
+ $(AM_V_GEN)cd $(top_builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) bison
## ------------ ##
## Extracting. ##
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
- mv $@.tmp $@
+ $(AM_V_at)mv $@.tmp $@
$(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)
- @rm -f calc++-parser.tmp
- @touch calc++-parser.tmp
- $(BISON) -d -ra -S lalr1.cc -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 -S lalr1.cc -o $(srcdir)/calc++-parser.cc \
$(srcdir)/calc++-parser.yy
- @mv -f calc++-parser.tmp $@
+ $(AM_V_at)mv -f calc++-parser.tmp $@
$(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
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 = \
- $(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)
MOSTLYCLEANFILES = yacc
yacc:
- echo '#! /bin/sh' >$@
- echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@
- chmod a+x $@
+ $(AM_V_GEN)echo '#! /bin/sh' >$@
+ $(AM_V_at)echo "exec '$(bindir)/bison' -y "'"$$@"' >>$@
+ $(AM_V_at)chmod a+x $@
echo:
echo $(bison_SOURCES) $(noinst_HEADERS)