2015-10-17 19:56:03 +02:00
|
|
|
## Process this file with automake to produce Makefile.in.
|
2016-07-18 17:25:27 +02:00
|
|
|
# Copyright © 2003 Dale Mellor <dale_mellor@users.sourceforge.net>
|
2017-01-13 17:13:48 +01:00
|
|
|
# Copyright © 2015, 2016, 2017 Mathieu Lirzin <mthl@gnu.org>
|
2016-07-18 17:25:27 +02:00
|
|
|
#
|
|
|
|
|
# This file is part of GNU Mcron.
|
2015-10-17 19:56:03 +02:00
|
|
|
#
|
2016-07-18 17:25:27 +02:00
|
|
|
# GNU Mcron is free software: you can redistribute it and/or modify
|
2015-10-17 19:56:03 +02:00
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
|
|
|
|
#
|
2016-07-18 17:25:27 +02:00
|
|
|
# GNU Mcron is distributed in the hope that it will be useful,
|
2015-10-17 19:56:03 +02:00
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU General Public License
|
2016-07-18 17:25:27 +02:00
|
|
|
# along with GNU Mcron. If not, see <http://www.gnu.org/licenses/>.
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
## ---------- ##
|
|
|
|
|
## Programs. ##
|
|
|
|
|
## ---------- ##
|
|
|
|
|
|
2017-02-22 15:49:18 +01:00
|
|
|
bin_PROGRAMS = bin/mcron
|
|
|
|
|
|
|
|
|
|
if MULTI_USER
|
|
|
|
|
bin_PROGRAMS += bin/crontab
|
build: Move executable to "bin" directory.
* Makefile.am (bin_PROGRAMS, sbin_PROGRAMS): Prepend "bin/" to every program.
(mcron_SOURCES, mcron_CPPFLAGS, mcron_DEPENDENCIES): Rename to ...
(bin_mcron_SOURCES, bin_mcron_CPPFLAGS, bin_mcron_DEPENDENCIES): ... this.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES): Rename to ...
(bin_cron_SOURCES, bin_cron_CPPFLAGS, bin_cron_DEPENDENCIES): ... this.
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES): Rename to ...
(bin_crontab_SOURCES, bin_crontab_CPPFLAGS, bin_crontab_DEPENDENCIES):
($(srcdir)/doc/cron.8, $(srcdir)/doc/crontab.1, $(srcdir)/doc/mcron.1): Update
prerequisite.
* build-aux/pre-inst-env.in (PATH): Use "bin" directory.
* .gitignore: Update.
2016-12-28 23:30:18 +01:00
|
|
|
sbin_PROGRAMS = bin/cron
|
2017-02-22 15:49:18 +01:00
|
|
|
else
|
|
|
|
|
noinst_PROGRAMS = bin/cron bin/crontab
|
|
|
|
|
endif
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
|
2017-01-14 16:56:37 +01:00
|
|
|
AM_CPPFLAGS = \
|
|
|
|
|
-DPACKAGE_LOAD_PATH=\"$(moduledir)\" \
|
|
|
|
|
-DPACKAGE_LOAD_COMPILED_PATH=\"$(moduledir)\" \
|
|
|
|
|
-D_GNU_SOURCE
|
|
|
|
|
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
AM_CFLAGS = @GUILE_CFLAGS@
|
2017-04-24 21:28:09 +02:00
|
|
|
LDADD = @GUILE_LIBS@ src/libmcron.a
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
|
2017-04-25 00:29:32 +02:00
|
|
|
bin_mcron_SOURCES = src/mcron.c
|
2017-01-14 18:38:23 +01:00
|
|
|
bin_mcron_DEPENDENCIES = $(compiled_modules)
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-04-25 00:29:32 +02:00
|
|
|
bin_cron_SOURCES = src/cron.c
|
2017-01-14 18:38:23 +01:00
|
|
|
bin_cron_DEPENDENCIES = $(compiled_modules)
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
|
2017-04-25 00:29:32 +02:00
|
|
|
bin_crontab_SOURCES = src/crontab.c
|
2017-01-14 18:38:23 +01:00
|
|
|
bin_crontab_DEPENDENCIES = $(compiled_modules)
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
# wrapper to be used in the build environment and for running tests.
|
|
|
|
|
noinst_SCRIPTS = pre-inst-env
|
|
|
|
|
|
2017-04-24 21:28:09 +02:00
|
|
|
# local library.
|
|
|
|
|
noinst_LIBRARIES = src/libmcron.a
|
|
|
|
|
src_libmcron_a_SOURCES = \
|
|
|
|
|
src/utils.c \
|
|
|
|
|
src/utils.h
|
|
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
## --------------- ##
|
|
|
|
|
## Guile modules. ##
|
|
|
|
|
## --------------- ##
|
|
|
|
|
|
2017-01-14 17:51:58 +01:00
|
|
|
# Root directory used for installing Guile modules.
|
|
|
|
|
guilesitedir = $(datarootdir)/guile/site/$(GUILE_EFFECTIVE_VERSION)
|
2017-01-14 18:38:23 +01:00
|
|
|
# Root directory used for installing Guile compiled modules.
|
|
|
|
|
guilesitegodir = $(libdir)/guile/$(GUILE_EFFECTIVE_VERSION)/site-ccache
|
2017-01-14 17:51:58 +01:00
|
|
|
|
|
|
|
|
pkgmoduledir = $(guilesitedir)/$(PACKAGE)
|
2017-01-14 18:38:23 +01:00
|
|
|
pkgmodule_DATA = src/mcron/config.scm
|
2017-01-14 17:51:58 +01:00
|
|
|
dist_pkgmodule_DATA = \
|
2016-05-07 16:01:02 +02:00
|
|
|
src/mcron/base.scm \
|
|
|
|
|
src/mcron/environment.scm \
|
|
|
|
|
src/mcron/job-specifier.scm \
|
|
|
|
|
src/mcron/redirect.scm \
|
2016-07-23 23:58:06 +02:00
|
|
|
src/mcron/utils.scm \
|
2016-05-07 16:01:02 +02:00
|
|
|
src/mcron/vixie-specification.scm \
|
2016-05-07 11:09:44 +02:00
|
|
|
src/mcron/vixie-time.scm
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-18 23:44:31 +01:00
|
|
|
# Alias for 'src/mcron/base.scm' kept for backward compatibility.
|
|
|
|
|
dist_pkgmodule_DATA += src/mcron/core.scm
|
|
|
|
|
|
2017-01-14 18:38:23 +01:00
|
|
|
pkgmodulegodir = $(guilesitegodir)/$(PACKAGE)
|
|
|
|
|
pkgmodulego_DATA = \
|
2017-01-14 17:51:58 +01:00
|
|
|
$(dist_pkgmodule_DATA:.scm=.go) \
|
2016-05-07 13:58:50 +02:00
|
|
|
src/mcron/config.go
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-01-14 17:51:58 +01:00
|
|
|
pkgscriptdir = $(pkgmoduledir)/scripts
|
|
|
|
|
dist_pkgscript_DATA = \
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
src/mcron/scripts/cron.scm \
|
|
|
|
|
src/mcron/scripts/crontab.scm \
|
|
|
|
|
src/mcron/scripts/mcron.scm
|
|
|
|
|
|
2017-01-14 18:38:23 +01:00
|
|
|
pkgscriptgodir = $(pkgmodulegodir)/scripts
|
|
|
|
|
pkgscriptgo_DATA = $(dist_pkgscript_DATA:.scm=.go)
|
all: Separate programs in different executables.
This improves readability and complies with the GNU Coding Standards by
making the behavior of the programs independent of the name used to
invoke them.
* src/mcron/scripts/cron.scm: New file.
* src/mcron/scripts/crontab.scm: Likewise.
* src/mcron/scripts/mcron.scm: Likewise.
* Makefile.am (dist_mcronmodule_DATA): Remove 'src/mcron/crontab.scm'.
(bin_PROGRAMS): Add 'crontab'.
(sbin_PROGRAMS): Add 'cron'.
(mcron_CFLAGS, mcron_LDADD): Rename to ...
(AM_CFLAGS, LDADD): ... these.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES)
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES)
(mcron_CPPFLAGS, mcronscriptdir, dist_mcronscript_DATA): New variables.
(modules): Redefine it in terms of other '_DATA' variables.
* src/mcron/crontab.scm: Remove file.
* src/mcron/main.scm (parse-args): New procedure.
(command-name, command-type, options): Remove.
(show-version): Adapt.
(show-help, process-files-in-system-directory, cron-file-descriptors)
(main, process-user-file, process-files-in-user-directory): Move
procedures in the new files.
* src/mcron.c (inner_main): Define the current module at compile time.
* TODO: Update.
* .gitignore: Likewise.
2016-05-09 14:50:29 +02:00
|
|
|
|
2017-01-14 18:38:23 +01:00
|
|
|
compiled_modules = \
|
|
|
|
|
$(pkgmodulego_DATA) \
|
|
|
|
|
$(pkgscriptgo_DATA)
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
CLEANFILES = $(compiled_modules)
|
|
|
|
|
DISTCLEANFILES = src/mcron/config.scm
|
2016-05-10 01:06:10 +02:00
|
|
|
|
2015-10-17 19:56:03 +02:00
|
|
|
# Unset 'GUILE_LOAD_COMPILED_PATH' altogether while compiling. Otherwise, if
|
2017-01-14 17:51:58 +01:00
|
|
|
# $GUILE_LOAD_COMPILED_PATH contains $(pkgmoduledir), we may find .go files
|
2015-10-17 19:56:03 +02:00
|
|
|
# in there that are newer than the local .scm files (for instance because the
|
|
|
|
|
# user ran 'make install' recently). When that happens, we end up loading
|
|
|
|
|
# those previously-installed .go files, which may be stale, thereby breaking
|
2016-05-04 16:06:02 +02:00
|
|
|
# the whole thing. Set GUILE_AUTO_COMPILE to 0 to avoid auto-compiling guild
|
|
|
|
|
# as a consequence of the previous hack.
|
2015-10-17 19:56:03 +02:00
|
|
|
#
|
|
|
|
|
# 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:
|
2017-02-22 15:20:25 +01:00
|
|
|
$(guilec_verbose)$(MKDIR_P) `dirname "$@"`; \
|
|
|
|
|
export GUILE_AUTO_COMPILE=0; unset GUILE_LOAD_COMPILED_PATH; \
|
|
|
|
|
LC_ALL=C \
|
|
|
|
|
$(top_builddir)/pre-inst-env $(GUILD) compile \
|
|
|
|
|
--load-path="$(builddir)/src" \
|
|
|
|
|
--load-path="$(srcdir)/src" \
|
|
|
|
|
--warn=format --warn=unbound-variable --warn=arity-mismatch \
|
2016-07-05 01:56:57 +02:00
|
|
|
--target="$(host)" --output="$@" "$<" $(devnull_verbose)
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
## ------------ ##
|
|
|
|
|
## Test suite. ##
|
|
|
|
|
## ------------ ##
|
|
|
|
|
|
2017-09-28 17:59:40 +02:00
|
|
|
TEST_EXTENSIONS = .scm .sh
|
2017-02-22 15:20:25 +01:00
|
|
|
AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0'
|
|
|
|
|
|
2017-09-28 17:59:40 +02:00
|
|
|
SH_LOG_COMPILER = ./pre-inst-env $(SHELL)
|
|
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
SCM_LOG_DRIVER = \
|
|
|
|
|
$(builddir)/pre-inst-env $(GUILE) \
|
|
|
|
|
$(srcdir)/build-aux/test-driver.scm
|
|
|
|
|
|
|
|
|
|
TESTS = \
|
2017-09-28 17:59:40 +02:00
|
|
|
tests/basic.sh \
|
2017-02-22 15:20:25 +01:00
|
|
|
tests/environment.scm \
|
|
|
|
|
tests/job-specifier.scm
|
|
|
|
|
|
|
|
|
|
## -------------- ##
|
|
|
|
|
## Distribution. ##
|
|
|
|
|
## -------------- ##
|
2015-10-17 19:56:03 +02:00
|
|
|
|
|
|
|
|
dist-hook: gen-ChangeLog
|
2016-12-28 23:06:03 +01:00
|
|
|
$(AM_V_GEN)echo $(VERSION) > $(distdir)/.tarball-version
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
# Generate the ChangeLog file from Git commit logs.
|
2015-10-17 19:56:03 +02:00
|
|
|
gen_start_date = 2015-06-26
|
|
|
|
|
.PHONY: gen-ChangeLog
|
|
|
|
|
gen-ChangeLog:
|
|
|
|
|
$(AM_V_GEN)if test -d $(srcdir)/.git; then \
|
|
|
|
|
log_fix="$(srcdir)/build-aux/git-log-fix"; \
|
|
|
|
|
test -e "$$log_fix" \
|
|
|
|
|
&& amend_git_log="--amend=$$log_fix" \
|
|
|
|
|
|| amend_git_log=; \
|
|
|
|
|
$(top_srcdir)/build-aux/gitlog-to-changelog \
|
|
|
|
|
$$amend_git_log --since=$(gen_start_date) > $(distdir)/cl-t && \
|
|
|
|
|
{ rm -f $(distdir)/ChangeLog && \
|
|
|
|
|
mv $(distdir)/cl-t $(distdir)/ChangeLog; } \
|
|
|
|
|
fi
|
|
|
|
|
|
2017-02-22 15:20:25 +01:00
|
|
|
EXTRA_DIST = \
|
|
|
|
|
bootstrap \
|
|
|
|
|
build-aux/guix.scm \
|
2017-09-29 16:52:48 +02:00
|
|
|
HACKING \
|
2017-09-28 17:59:40 +02:00
|
|
|
tests/init.sh \
|
2017-02-22 15:20:25 +01:00
|
|
|
$(TESTS)
|
|
|
|
|
|
|
|
|
|
## -------------- ##
|
|
|
|
|
## Installation. ##
|
|
|
|
|
## -------------- ##
|
|
|
|
|
|
2015-10-17 19:56:03 +02:00
|
|
|
#full program prefix
|
|
|
|
|
fpp = $(DESTDIR)$(bindir)/@real_program_prefix@
|
|
|
|
|
|
2017-02-22 15:49:18 +01:00
|
|
|
if MULTI_USER
|
2015-10-17 19:56:03 +02:00
|
|
|
install-exec-hook:
|
2017-02-22 15:49:18 +01:00
|
|
|
chmod u+s $(fpp)crontab$(EXEEXT)
|
|
|
|
|
endif
|
2015-10-17 19:56:03 +02:00
|
|
|
|
|
|
|
|
## --------------- ##
|
|
|
|
|
## Documentation. ##
|
|
|
|
|
## --------------- ##
|
|
|
|
|
|
|
|
|
|
info_TEXINFOS = doc/mcron.texi
|
|
|
|
|
doc_mcron_TEXINFOS = doc/fdl.texi
|
2015-10-17 21:32:46 +02:00
|
|
|
nodist_doc_mcron_TEXINFOS = doc/config.texi
|
2017-02-22 15:49:18 +01:00
|
|
|
dist_man_MANS = $(srcdir)/doc/mcron.1
|
|
|
|
|
extra_mans = \
|
2016-05-10 20:46:06 +02:00
|
|
|
$(srcdir)/doc/crontab.1 \
|
|
|
|
|
$(srcdir)/doc/cron.8
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-22 15:49:18 +01:00
|
|
|
if MULTI_USER
|
|
|
|
|
dist_man_MANS += $(extra_mans)
|
|
|
|
|
else
|
|
|
|
|
# Build, distribute, but do not install the extra man pages.
|
|
|
|
|
all-local: $(extra_mans)
|
|
|
|
|
EXTRA_DIST += $(extra_mans)
|
|
|
|
|
endif
|
|
|
|
|
|
2015-10-17 21:32:46 +02:00
|
|
|
# XXX: Allow the inclusion of 'doc/fdl.texi' and 'doc/config.texi' inside
|
|
|
|
|
# 'doc/mcron.texi' for 'dvi' and 'pdf' targets.
|
|
|
|
|
TEXI2DVI = texi2dvi -I doc
|
|
|
|
|
|
2016-05-10 20:46:06 +02:00
|
|
|
# The 'case' ensures the man pages are only generated if the corresponding
|
|
|
|
|
# source script (the first prerequisite) has been changed. The second
|
|
|
|
|
# prerequisites is solely meant to force these docs to be made only after
|
|
|
|
|
# executables have been compiled.
|
|
|
|
|
gen_man = \
|
|
|
|
|
case '$?' in \
|
|
|
|
|
*$<*) $(AM_V_P) && set -x || echo " HELP2MAN $@"; \
|
|
|
|
|
LANGUAGE= $(top_builddir)/pre-inst-env $(HELP2MAN) \
|
|
|
|
|
-s $$man_section -S GNU -p $(PACKAGE_TARNAME) -o $@ $$prog;; \
|
|
|
|
|
*) : ;; \
|
|
|
|
|
esac
|
|
|
|
|
|
build: Move executable to "bin" directory.
* Makefile.am (bin_PROGRAMS, sbin_PROGRAMS): Prepend "bin/" to every program.
(mcron_SOURCES, mcron_CPPFLAGS, mcron_DEPENDENCIES): Rename to ...
(bin_mcron_SOURCES, bin_mcron_CPPFLAGS, bin_mcron_DEPENDENCIES): ... this.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES): Rename to ...
(bin_cron_SOURCES, bin_cron_CPPFLAGS, bin_cron_DEPENDENCIES): ... this.
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES): Rename to ...
(bin_crontab_SOURCES, bin_crontab_CPPFLAGS, bin_crontab_DEPENDENCIES):
($(srcdir)/doc/cron.8, $(srcdir)/doc/crontab.1, $(srcdir)/doc/mcron.1): Update
prerequisite.
* build-aux/pre-inst-env.in (PATH): Use "bin" directory.
* .gitignore: Update.
2016-12-28 23:30:18 +01:00
|
|
|
$(srcdir)/doc/mcron.1: src/mcron/scripts/mcron.scm bin/mcron
|
2016-05-10 20:46:06 +02:00
|
|
|
-@prog="mcron"; man_section=1; $(gen_man)
|
|
|
|
|
|
build: Move executable to "bin" directory.
* Makefile.am (bin_PROGRAMS, sbin_PROGRAMS): Prepend "bin/" to every program.
(mcron_SOURCES, mcron_CPPFLAGS, mcron_DEPENDENCIES): Rename to ...
(bin_mcron_SOURCES, bin_mcron_CPPFLAGS, bin_mcron_DEPENDENCIES): ... this.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES): Rename to ...
(bin_cron_SOURCES, bin_cron_CPPFLAGS, bin_cron_DEPENDENCIES): ... this.
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES): Rename to ...
(bin_crontab_SOURCES, bin_crontab_CPPFLAGS, bin_crontab_DEPENDENCIES):
($(srcdir)/doc/cron.8, $(srcdir)/doc/crontab.1, $(srcdir)/doc/mcron.1): Update
prerequisite.
* build-aux/pre-inst-env.in (PATH): Use "bin" directory.
* .gitignore: Update.
2016-12-28 23:30:18 +01:00
|
|
|
$(srcdir)/doc/crontab.1: src/mcron/scripts/crontab.scm bin/crontab
|
2016-05-10 20:46:06 +02:00
|
|
|
-@prog="crontab"; man_section=1; $(gen_man)
|
|
|
|
|
|
build: Move executable to "bin" directory.
* Makefile.am (bin_PROGRAMS, sbin_PROGRAMS): Prepend "bin/" to every program.
(mcron_SOURCES, mcron_CPPFLAGS, mcron_DEPENDENCIES): Rename to ...
(bin_mcron_SOURCES, bin_mcron_CPPFLAGS, bin_mcron_DEPENDENCIES): ... this.
(cron_SOURCES, cron_CPPFLAGS, cron_DEPENDENCIES): Rename to ...
(bin_cron_SOURCES, bin_cron_CPPFLAGS, bin_cron_DEPENDENCIES): ... this.
(crontab_SOURCES, crontab_CPPFLAGS, crontab_DEPENDENCIES): Rename to ...
(bin_crontab_SOURCES, bin_crontab_CPPFLAGS, bin_crontab_DEPENDENCIES):
($(srcdir)/doc/cron.8, $(srcdir)/doc/crontab.1, $(srcdir)/doc/mcron.1): Update
prerequisite.
* build-aux/pre-inst-env.in (PATH): Use "bin" directory.
* .gitignore: Update.
2016-12-28 23:30:18 +01:00
|
|
|
$(srcdir)/doc/cron.8: src/mcron/scripts/cron.scm bin/cron
|
2016-05-10 20:46:06 +02:00
|
|
|
-@prog="cron"; man_section=8; $(gen_man)
|
2015-10-17 19:56:03 +02:00
|
|
|
|
2017-02-22 15:49:18 +01:00
|
|
|
MAINTAINERCLEANFILES = $(dist_man_MANS) $(extra_mans)
|
2017-02-22 15:20:25 +01:00
|
|
|
|
2015-10-17 19:56:03 +02:00
|
|
|
## -------------- ##
|
|
|
|
|
## Silent rules. ##
|
|
|
|
|
## -------------- ##
|
|
|
|
|
|
2016-05-10 21:00:59 +02:00
|
|
|
guilec_verbose = $(guilec_verbose_@AM_V@)
|
|
|
|
|
guilec_verbose_ = $(guilec_verbose_@AM_DEFAULT_V@)
|
|
|
|
|
guilec_verbose_0 = @echo " GUILEC " $@;
|
2016-07-05 01:56:57 +02:00
|
|
|
|
|
|
|
|
devnull_verbose = $(devnull_verbose_@AM_V@)
|
|
|
|
|
devnull_verbose_ = $(devnull_verbose_@AM_DEFAULT_V@)
|
|
|
|
|
devnull_verbose_0 = >/dev/null
|