From 1712722a7b50e2f449ee94fb5d039757f2426f36 Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Tue, 18 Aug 2015 17:25:21 +0200 Subject: 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. --- makefile.am | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'makefile.am') 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 > $@ -- cgit v1.2.3