>From 518e8896825daa0d4403f9ad9246b00c758135b6 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Tue, 18 Aug 2015 17:25:21 +0200 Subject: [PATCH] build: Enable silent rules by default. * configure.ac (AM_SILENT_RULES): Use this. * makefile.am (AM_V_MANC, AM_V_MANC_, AM_V_MANC_): New variables. (.scm.go): Use 'AM_V_MANC'. * scm/mcron/makefile.am (AM_V_GUILEC, AM_V_GUILEC_, AM_V_GUILEC_): New variables. ($(dist_man_MANS)): Use 'AM_V_GUILEC'. --- configure.ac | 1 + makefile.am | 10 ++++++++-- scm/mcron/makefile.am | 6 ++++++ 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 36b8b43..8f416db 100644 --- a/configure.ac +++ b/configure.ac @@ -25,6 +25,7 @@ AC_PREREQ(2.61) AC_INIT([GNU Mcron], [1.0.8], address@hidden) AC_CONFIG_AUX_DIR([build-aux]) AM_INIT_AUTOMAKE +AM_SILENT_RULES([yes]) # enables silent rules by default mcronmoduledir="${datarootdir}/guile/site/2.0/mcron" AC_SUBST([mcronmoduledir]) diff --git a/makefile.am b/makefile.am index 045107d..2536206 100644 --- a/makefile.am +++ b/makefile.am @@ -78,12 +78,18 @@ uninstall-hook: rm -f $(fpp){cron,crontab}$(EXEEXT); \ fi +# Extend silent rules to help2man. +AM_V_MANC = $(AM_V_MANC_$(V)) +AM_V_MANC_ = $(AM_V_MANC_$(AM_DEFAULT_VERBOSITY)) +AM_V_MANC_0 = @echo " MANC" $@; # Not part of formal package building, but a rule for manual use to get the # elemental man page. $(dist_man_MANS): $(bin_PROGRAMS) - $(HELP2MAN) -n 'a program to run tasks at regular (or not) intervals' \ - ./$< > $@ + $(AM_V_MANC)$(MKDIR_P) `dirname "$@"` ; \ + $(HELP2MAN) \ + -n 'a program to run tasks at regular (or not) intervals' \ + ./$< > $@ maintainer-clean-local: git clean -xd --force diff --git a/scm/mcron/makefile.am b/scm/mcron/makefile.am index ab6cae2..7bd9902 100644 --- a/scm/mcron/makefile.am +++ b/scm/mcron/makefile.am @@ -23,6 +23,11 @@ dist_mcronmodule_DATA = \ crontab.scm \ mcron-core.scm +# Extend silent rules to Guile compilation. +AM_V_GUILEC = $(AM_V_GUILEC_$(V)) +AM_V_GUILEC_ = $(AM_V_GUILEC_$(AM_DEFAULT_VERBOSITY)) +AM_V_GUILEC_0 = @echo " GUILEC" $@; + # Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if # $GUILE_LOAD_COMPILED_PATH contains $(mcronmoduledir), we may find .go files # in there that are newer than the local .scm files (for instance because the @@ -33,6 +38,7 @@ dist_mcronmodule_DATA = \ # XXX: Use the C locale for when Guile lacks # . .scm.go: + $(AM_V_GUILEC)$(MKDIR_P) `dirname "$@"` ; \ unset GUILE_LOAD_COMPILED_PATH ; \ LC_ALL=C \ $(GUILD) compile \ -- 2.6.1