# # # patch "Makefile.am" # from [b972f9c4ce08908d2bd92c4bf553434817631a03] # to [fb784b732f988aa0da9c4f69b6a017aebedecd08] # # patch "configure.ac" # from [761ca6099c40935aff79de4a2ebf9896088a2fe2] # to [b22f991e8fb22aeb177ca63137c2a070cd368249] # ============================================================ --- Makefile.am b972f9c4ce08908d2bd92c4bf553434817631a03 +++ Makefile.am fb784b732f988aa0da9c4f69b6a017aebedecd08 @@ -384,10 +384,10 @@ if REBUILD_NLS if REBUILD_NLS %.gmo: %.merged.po - $(MSGFMT) -c --statistics -o $@ $< + $(V_msgfmt)$(MSGFMT) -c --statistics -o $@ $< %.merged.po: $(srcdir)/po/%.po $(PACKAGE).pot - $(MSGMERGE) $^ -o $@ + $(V_msgmerge)$(MSGMERGE) $^ -q -o $@ # for translators' use UPDATEPOFILES = $(addsuffix .po-update, $(ALL_LINGUAS)) @@ -403,7 +403,7 @@ $(PACKAGE).pot: $(POTFILES) monotone.cc std_hooks.lua $(PACKAGE).pot: $(POTFILES) - $(XGETTEXT) -o$@ -D$(top_srcdir) -cTRANSLATORS: \ + $(V_xgettext)$(XGETTEXT) -o$@ -D$(top_srcdir) -cTRANSLATORS: \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address='$(MSGID_BUGS_ADDRESS)' \ $(XGETTEXT_PKG_OPTS) $(XGETTEXT_OPTS) \ @@ -511,17 +511,17 @@ run_%_tests: Makefile exit $$exit run_%_tests: Makefile - { echo '#!/bin/sh'; \ + $(AM_V_GEN){ echo '#!/bin/sh'; \ echo 'PATH=$(top_builddir):$$PATH'; \ echo '$(top_builddir)/tester $(srcdir)/$*-testsuite.lua "$$@"'; \ echo 'echo $$? > $*_tests.status'; \ - echo 'exit 0'; } > $@ + echo 'exit 0'; } > $@ && \ chmod 755 $@ # The leading + causes Make to treat this as a recursive invocation, # allowing it to participate in the jobserver protocol. %_tests.status: run_%_tests %-testsuite.lua tester$(EXEEXT) FORCE - +./run_$*_tests + +$(AM_V_at)./run_$*_tests unit_tests.status : unit_tester$(EXEEXT) lua_tests.status : mtn$(EXEEXT) check_net$(EXEEXT) @@ -565,32 +565,32 @@ CLEANFILES = $(bin_SCRIPTS) $(BUILT_SOUR # automake provides no nice way to build a helper program to execute # on the build machine, so we need our own rule. almost all the # standard flags variables are inappropriate. + txt2c$(EXEEXT): txt2c.cc - $(CXX_FOR_BUILD) $(CXXFLAGS) -o $@ $^ + $(V_bcxx)$(CXX_FOR_BUILD) $(CXXFLAGS) -o $@ $^ # files generated using txt2c std_hooks.cc: std_hooks.lua txt2c$(EXEEXT) - ./txt2c std_hooks $< $@ + $(V_txt2c)./txt2c std_hooks $< $@ testlib.cc: testlib.lua txt2c$(EXEEXT) - ./txt2c testlib $< $@ + $(V_txt2c)./txt2c testlib $< $@ schema.cc: schema.sql txt2c$(EXEEXT) - ./txt2c schema $< $@ + $(V_txt2c)./txt2c schema $< $@ package_revision.cc: package_revision.txt txt2c$(EXEEXT) - ./txt2c --strip-trailing package_revision $< $@ + $(V_txt2c)./txt2c --strip-trailing package_revision $< $@ package_full_revision.cc: package_full_revision.txt txt2c$(EXEEXT) - ./txt2c package_full_revision $< $@ + $(V_txt2c)./txt2c package_full_revision $< $@ # Support for scripts do_subst = sed -e 's,address@hidden@],$(PACKAGE_VERSION),' %: util/%.in - $(do_subst) < $< > $@ - chmod +x $@ + $(V_subst)$(do_subst) < $< > $@ && chmod +x $@ # This is phony, so that we always try to rebuild it. If it succeeds # in calculating changes, it produces its target; otherwise, its @@ -600,17 +600,17 @@ package_revision_raw.txt: # creates, and also make sure that the shell command exits # successfully; the rm -f ensures both package_revision_raw.txt: - REAL_BLDDIR=$$PWD/$(top_builddir); \ + $(AM_V_GEN)REAL_BLDDIR=$$PWD/$(top_builddir); \ (cd $(srcdir) && $$REAL_BLDDIR/mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \ || (cd $(srcdir) && mtn --root=. automate get_base_revision_id) 2>/dev/null >$@ \ || rm -f $@ package_revision.txt: package_revision_raw.txt - if [ -f $< ]; then \ + $(AM_V_GEN)set -e; if [ -f $< ]; then \ cp $< $@; \ - fi + fi; \ if [ ! -f $@ -a -f $(srcdir)/$@ ]; then \ cp $(srcdir)/$@ $@; \ - fi + fi; \ [ -f $@ ] || echo "unknown" > $@ # To avoid a dependency loop here, what we do is: @@ -625,7 +625,7 @@ package_full_revision_raw.txt: # See above comment. .PHONY: package_full_revision_raw.txt package_full_revision_raw.txt: - REAL_BLDDIR=$$PWD/$(top_builddir); \ + $(AM_V_GEN)REAL_BLDDIR=$$PWD/$(top_builddir); \ (cd $(srcdir) && $$REAL_BLDDIR/mtn --root=. automate get_current_revision) 2>/dev/null >$@ \ || (cd $(srcdir) && mtn --root=. automate get_current_revision) 2>/dev/null >$@ \ || rm -f $@ @@ -637,21 +637,23 @@ package_full_revision_dist.txt: package_ # -- if the dist file does not exist, then we say "unknown" # -- if the raw file does exist, then we regenerate the dist file package_full_revision_dist.txt: package_full_revision_raw.txt - if [ -f $< ]; then \ + $(AM_V_GEN)set -e; if [ -f $< ]; then \ cp -f $< $@ \ && (echo ''; \ echo ' Generated from data cached in the distribution;'; \ echo ' further changes may have been made.') >> $@; \ - fi + fi; \ if [ ! -f $@ -a -f $(srcdir)/$@ ]; then \ cp $(srcdir)/$@ $@; \ - fi + fi; \ [ -f $@ ] || echo "unknown" > $@ # The raw file may not exist, but the dist file definitely does; we # just take the first dependency that exists. package_full_revision.txt: package_full_revision_raw.txt package_full_revision_dist.txt - rm -f $@ - for SRC in $^; do ([ -f $$SRC -a ! -f $@ ] && cp -f $$SRC $@) || true; done + $(AM_V_GEN)rm -f $@; \ + for SRC in $^; do \ + ([ -f $$SRC -a ! -f $@ ] && cp -f $$SRC $@) || true; \ + done # This is a magic directive copy-and-pasted, then modified, from the # automake 1.9 manual, section 13.4, "Checking the distribution". @@ -685,25 +687,54 @@ monotone.html: monotone.texi version.tex monotone.html: monotone.texi version.texi $(TEXI_FRAGMENTS) \ std_hooks.lua texinfo.css - if $(CHECK_SRCDIR_EQ_BUILDDIR); then :; else \ + $(V_makeinfo)set -e; if $(CHECK_SRCDIR_EQ_BUILDDIR); then :; else \ cp -r $(srcdir)/figures .; \ cp $(srcdir)/texinfo.css .; \ - fi - makeinfo -I $(srcdir) --no-split --no-headers --output $@ --html $< - cp $@ address@hidden - sed -e 's,,,' address@hidden >$@ + fi; \ + makeinfo -I $(srcdir) --no-split --no-headers --output $@ --html $<; \ + cp $@ address@hidden; \ + sed -e 's,,,' address@hidden >$@; \ rm -f address@hidden html: monotone.texi version.texi std_hooks.lua texinfo.css - if $(CHECK_SRCDIR_EQ_BUILDDIR); then :; else \ + $(V_makeinfo)set -e; if $(CHECK_SRCDIR_EQ_BUILDDIR); then :; else \ cp -r $(srcdir)/figures .; \ - fi - mkdir -p $@ - cp -r $(srcdir)/figures $@ - cp $(srcdir)/texinfo.css $@ - makeinfo -I $(srcdir) --number-sections --html --output $@ $< + fi; \ + mkdir -p $@; \ + cp -r $(srcdir)/figures $@; \ + cp $(srcdir)/texinfo.css $@; \ + makeinfo -I $(srcdir) --number-sections --html --output $@ $<; \ for f in $@/*.html; do \ cp $$f $$f.bak; \ sed -e 's,,,' $$f.bak >$$f; \ rm -f $$f.bak; \ done + +# Verbosity goo. +V_bcxx = $(V_bcxx_$(V)) +V_bcxx_ = $(V_bcxx_$(AM_DEFAULT_VERBOSITY)) +V_bcxx_0 = @echo " BCXX " $@; + +V_txt2c = $(V_txt2c_$(V)) +V_txt2c_ = $(V_txt2c_$(AM_DEFAULT_VERBOSITY)) +V_txt2c_0 = @echo " TXT2C " $@; + +V_subst = $(V_subst_$(V)) +V_subst_ = $(V_subst_$(AM_DEFAULT_VERBOSITY)) +V_subst_0 = @echo " SUBST " $@; + +V_xgettext = $(V_xgettext_$(V)) +V_xgettext_ = $(V_xgettext_$(AM_DEFAULT_VERBOSITY)) +V_xgettext_0 = @echo "XGETTEXT" $@; + +V_msgfmt = $(V_msgfmt_$(V)) +V_msgfmt_ = $(V_msgfmt_$(AM_DEFAULT_VERBOSITY)) +V_msgfmt_0 = @echo " MSGFMT" $@; + +V_msgmerge = $(V_msgmerge_$(V)) +V_msgmerge_ = $(V_msgmerge_$(AM_DEFAULT_VERBOSITY)) +V_msgmerge_0 = @echo "MSGMERGE" $@; + +V_makeinfo = $(V_makeinfo_$(V)) +V_makeinfo_ = $(V_makeinfo_$(AM_DEFAULT_VERBOSITY)) +V_makeinfo_0 = @echo "MAKEINFO" $@; ============================================================ --- configure.ac 761ca6099c40935aff79de4a2ebf9896088a2fe2 +++ configure.ac b22f991e8fb22aeb177ca63137c2a070cd368249 @@ -12,6 +12,7 @@ AM_INIT_AUTOMAKE([1.9 tar-ustar std-opti AC_PREREQ(2.58) AC_INIT([monotone], [0.45dev], address@hidden) AM_INIT_AUTOMAKE([1.9 tar-ustar std-options]) +m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) AC_CONFIG_SRCDIR([app_state.cc]) AC_CONFIG_HEADERS([config.h]) AC_CONFIG_FILES([Makefile]) @@ -21,12 +22,9 @@ dnl but not properly implemented. dnl No, AC_PROG_MKDIR_P does not AC_SUBST its result variable, at least dnl not in 2.61. Comments in programs.m4 suggest that it was meant to dnl but not properly implemented. -if test x"$MKDIR_P" = x; then - if test x"$mkdir_p" != x; then - MKDIR_P="$mkdir_p" - else - AC_PROG_MKDIR_P - fi +AC_PROG_MKDIR_P +if test x"$MKDIR_P" = x && test x"$mkdir_p" != x; then + MKDIR_P="$mkdir_p" fi AC_SUBST([MKDIR_P])