Taken on board suggestions of Mathieu Lirzin as per e-mails to the bug-mcron@gnu.org mailing list around September 2015.

This commit is contained in:
Dale Mellor 2015-10-22 06:59:21 +01:00
commit c0a6eb14c2
20 changed files with 1155 additions and 664 deletions

View file

@ -1,6 +1,5 @@
## Makefile for the toplevel directory of mcron.
## Copyright (C) 2003 Dale Mellor
## Copyright (C) 2015 Mathieu Lirzin
## Copyright (C) 2003, 2015 Dale Mellor
##
# This file is part of GNU mcron.
#
@ -17,20 +16,13 @@
# You should have received a copy of the GNU General Public License along
# with GNU mcron. If not, see <http://www.gnu.org/licenses/>.
## Process this file with automake to produce Makefile.in
## Process this file with automake to produce makefile.in
SUBDIRS = scm/mcron .
ED = @ED@ # !!!! Are these needed?
CP = @CP@
MAINTAINERCLEANFILES = configure makefile makefile.in config.guess config.sub \
install-sh missing texinfo.tex INSTALL \
aclocal.m4 compile depcomp doc/mcron.1
CLEANFILES = mcron.c
EXTRA_DIST = makefile.ed mcron.c.template BUGS
EXTRA_DIST = BUGS
info_TEXINFOS = doc/mcron.texi
@ -42,14 +34,7 @@ mcron_LDADD = @GUILE_LIBS@
# The second option is so that we can execute the binary in the local directory,
# in turn so that we can do mcron --help during the build process.
mcron_CFLAGS = @GUILE_CFLAGS@ -DGUILE_LOAD_PATH=\"$(datadir):./scm:...\"
mcron.c : scm/mcron/main.scm scm/mcron/crontab.scm makefile.ed mcron.c.template
@echo 'Building mcron.c...'
@$(ED) < makefile.ed > /dev/null 2>&1
@rm -f mcron.escaped.scm > /dev/null 2>&1
mcron_CFLAGS = @GUILE_CFLAGS@ -DGUILE_LOAD_PATH=\"$(datadir):./scm:...\"
# Full program prefix.
fpp = $(DESTDIR)$(bindir)/@real_program_prefix@
@ -79,11 +64,15 @@ uninstall-hook:
# 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.
$(dist_man_MANS): mcron.c
# elemental man page.
doc/mcron.1 : mcron
$(HELP2MAN) -n 'a program to run tasks at regular (or not) intervals' \
./mcron > $@
./mcron > doc/mcron.1
MAINTAINERCLEANFILES = configure makefile makefile.in config.guess config.sub \
install-sh missing texinfo.tex INSTALL \
aclocal.m4 compile depcomp doc/mcron.1
maintainer-clean-local:
rm -r build-aux