SummaryRefsLogTreeCommitDiffStats
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2015-08-18 17:25:21 +0200
committerMathieu Lirzin <mthl@gnu.org>2016-05-07 11:42:11 +0200
commit1712722a7b50e2f449ee94fb5d039757f2426f36 (patch)
tree3430995f892e25afefea93cf6d5ed9b30cdc4305
parent3221c057206ca22c2da599c8c76bbcbb0f36e794 (diff)
downloadmcron-1712722a7b50e2f449ee94fb5d039757f2426f36.tar.gz
mcron-1712722a7b50e2f449ee94fb5d039757f2426f36.tar.bz2
mcron-1712722a7b50e2f449ee94fb5d039757f2426f36.zip
build: Enable silent rules by default.
* configure.ac (AM_SILENT_RULES): Use macro. * makefile.am (doc/mcron.1): Use $(AM_V_HELP2MAN). (AM_V_HELP2MAN, AM_V_HELP2MAN_, AM_V_HELP2MAN_): New variables. * scm/mcron/makefile.am (.scm.go): Use $(AM_V_GUILEC). (AM_V_GUILEC, AM_V_GUILEC_, AM_V_GUILEC_): New variables.
-rw-r--r--configure.ac1
-rw-r--r--makefile.am10
-rw-r--r--scm/mcron/makefile.am6
3 files changed, 15 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 42dfa6e..54481dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -25,6 +25,7 @@ AC_PREREQ(2.61)
AC_INIT([GNU Mcron], [1.0.8], [bug-mcron@gnu.org])
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 aa0b24b..1fcf32e 100644
--- a/makefile.am
+++ b/makefile.am
@@ -79,9 +79,15 @@ uninstall-hook:
rm -f $(fpp){cron,crontab}$(EXEEXT); \
fi
+# Extend silent rules to help2man.
+AM_V_HELP2MAN = $(AM_V_HELP2MAN_$(V))
+AM_V_HELP2MAN_ = $(AM_V_HELP2MAN_$(AM_DEFAULT_VERBOSITY))
+AM_V_HELP2MAN_0 = @echo " HELP2MAN" $@;
# Not part of formal package building, but a rule for manual use to get the
# elemental man page. Will only work once the mcron program is installed.
doc/mcron.1: mcron.c
- -$(HELP2MAN) -n 'a program to run tasks at regular (or not) intervals' \
- ./mcron > $@
+ -$(AM_V_HELP2MAN)$(MKDIR_P) `dirname "$@"` ; \
+ $(HELP2MAN) \
+ -n 'a program to run tasks at regular (or not) intervals' \
+ ./mcron > $@
diff --git a/scm/mcron/makefile.am b/scm/mcron/makefile.am
index ab6cae2..cb7a6bb 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
# <http://git.sv.gnu.org/cgit/guile.git/commit/?h=stable-2.0&id=e2c6bf3866d1186c60bacfbd4fe5037087ee5e3f>.
.scm.go:
+ $(AM_V_GUILEC)$(MKDIR_P) `dirname "$@"` ; \
unset GUILE_LOAD_COMPILED_PATH ; \
LC_ALL=C \
$(GUILD) compile \