diff options
author | Mathieu Lirzin <mthl@gnu.org> | 2017-09-27 23:10:29 +0200 |
---|---|---|
committer | Mathieu Lirzin <mthl@gnu.org> | 2017-09-27 23:10:29 +0200 |
commit | 41b427e1b220389eccd65e436fc3452e2bc0215d (patch) | |
tree | 431584749084f7b041d406153cfcf1ad1f043737 /makefile.am | |
parent | c0a6eb14c257a47e9573631e5ac09e6528fba377 (diff) | |
download | mcron-41b427e1b220389eccd65e436fc3452e2bc0215d.tar.gz mcron-41b427e1b220389eccd65e436fc3452e2bc0215d.tar.bz2 mcron-41b427e1b220389eccd65e436fc3452e2bc0215d.zip |
Revert "Taken on board suggestions of Mathieu Lirzin as per e-mails to the bug-mcron@gnu.org mailing list around September 2015."
This reverts commit c0a6eb14c257a47e9573631e5ac09e6528fba377.
Diffstat (limited to 'makefile.am')
-rw-r--r-- | makefile.am | 33 |
1 files changed, 22 insertions, 11 deletions
diff --git a/makefile.am b/makefile.am index 0afa5fc..23384bd 100644 --- a/makefile.am +++ b/makefile.am @@ -1,5 +1,6 @@ ## Makefile for the toplevel directory of mcron. -## Copyright (C) 2003, 2015 Dale Mellor +## Copyright (C) 2003 Dale Mellor +## Copyright (C) 2015 Mathieu Lirzin ## # This file is part of GNU mcron. # @@ -16,13 +17,20 @@ # 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@ -EXTRA_DIST = BUGS +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 info_TEXINFOS = doc/mcron.texi @@ -34,7 +42,14 @@ 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_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 + # Full program prefix. fpp = $(DESTDIR)$(bindir)/@real_program_prefix@ @@ -64,15 +79,11 @@ uninstall-hook: # Not part of formal package building, but a rule for manual use to get the -# elemental man page. -doc/mcron.1 : mcron +# elemental man page. Will only work once the mcron program is installed. +$(dist_man_MANS): mcron.c $(HELP2MAN) -n 'a program to run tasks at regular (or not) intervals' \ - ./mcron > doc/mcron.1 - + ./mcron > $@ -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 |