| 
									
										
										
										
											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> | 
					
						
							|  |  |  | # Copyright © 2015, 2016 Mathieu Lirzin <mthl@gnu.org> | 
					
						
							|  |  |  | # | 
					
						
							|  |  |  | # 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
										 |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  | bin_PROGRAMS = bin/mcron bin/crontab | 
					
						
							|  |  |  | sbin_PROGRAMS = bin/cron | 
					
						
							| 
									
										
											  
											
												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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-07-17 00:10:35 +02:00
										 |  |  | AM_CPPFLAGS = -DPACKAGE_LOAD_PATH=\"$(moduledir)\" | 
					
						
							| 
									
										
											  
											
												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@ | 
					
						
							|  |  |  | LDADD = @GUILE_LIBS@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  | bin_mcron_SOURCES = src/wrapper.c | 
					
						
							|  |  |  | bin_mcron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"mcron\"" | 
					
						
							|  |  |  | bin_mcron_DEPENDENCIES = $(modules:%.scm=%.go) | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  | bin_cron_SOURCES = src/wrapper.c | 
					
						
							|  |  |  | bin_cron_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"cron\"" | 
					
						
							|  |  |  | bin_cron_DEPENDENCIES = $(modules:%.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
										 |  |  | 
 | 
					
						
							| 
									
										
										
											
												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
										 |  |  | bin_crontab_SOURCES = src/wrapper.c | 
					
						
							|  |  |  | bin_crontab_CPPFLAGS = $(AM_CPPFLAGS) -DPROGRAM="\"crontab\"" | 
					
						
							|  |  |  | bin_crontab_DEPENDENCIES = $(modules:%.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
										 |  |  | 
 | 
					
						
							|  |  |  | dist_mcronmodule_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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-07 16:01:02 +02:00
										 |  |  | mcronmodule_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
										 |  |  |   $(dist_mcronmodule_DATA:%.scm=%.go) \ | 
					
						
							| 
									
										
										
										
											2016-07-05 01:11:49 +02:00
										 |  |  |   src/mcron/config.scm \ | 
					
						
							| 
									
										
										
										
											2016-05-07 13:58:50 +02:00
										 |  |  |   src/mcron/config.go | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
											  
											
												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
										 |  |  | mcronscriptdir = $(mcronmoduledir)/scripts | 
					
						
							|  |  |  | dist_mcronscript_DATA = \ | 
					
						
							|  |  |  |   src/mcron/scripts/cron.scm \ | 
					
						
							|  |  |  |   src/mcron/scripts/crontab.scm \ | 
					
						
							|  |  |  |   src/mcron/scripts/mcron.scm | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mcronscript_DATA = $(dist_mcronscript_DATA:%.scm=%.go) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | modules = \ | 
					
						
							|  |  |  |   $(dist_mcronmodule_DATA) \ | 
					
						
							|  |  |  |   $(dist_mcronscript_DATA) \ | 
					
						
							|  |  |  |   src/mcron/config.scm | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-10 01:06:10 +02:00
										 |  |  | TEST_EXTENSIONS = .scm | 
					
						
							|  |  |  | AM_TESTS_ENVIRONMENT = env GUILE_AUTO_COMPILE='0' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | SCM_LOG_DRIVER = \ | 
					
						
							|  |  |  |   $(builddir)/pre-inst-env $(GUILE) \ | 
					
						
							|  |  |  |   $(srcdir)/build-aux/test-driver.scm | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-10 02:22:09 +02:00
										 |  |  | TESTS = \ | 
					
						
							|  |  |  |   tests/environment.scm \ | 
					
						
							|  |  |  |   tests/job-specifier.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 | 
					
						
							|  |  |  | # $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 | 
					
						
							|  |  |  | # 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: | 
					
						
							| 
									
										
										
										
											2016-05-10 21:00:59 +02:00
										 |  |  | 	$(guilec_verbose)$(MKDIR_P) `dirname "$@"` ;			\ | 
					
						
							| 
									
										
										
										
											2016-05-04 16:06:02 +02:00
										 |  |  | 	export GUILE_AUTO_COMPILE=0 ; unset GUILE_LOAD_COMPILED_PATH ;	\ | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 	LC_ALL=C							\ | 
					
						
							| 
									
										
										
										
											2015-10-17 20:05:08 +02:00
										 |  |  | 	$(top_builddir)/pre-inst-env $(GUILD) compile			\ | 
					
						
							| 
									
										
										
										
											2016-05-07 11:09:44 +02:00
										 |  |  | 	  --load-path="$(top_builddir)/src"				\ | 
					
						
							|  |  |  | 	  --load-path="$(top_srcdir)/src"				\ | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 	  --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
										 |  |  | 
 | 
					
						
							|  |  |  | SUFFIXES = .go | 
					
						
							| 
									
										
										
										
											2015-10-17 20:05:08 +02:00
										 |  |  | noinst_SCRIPTS = pre-inst-env | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-28 23:06:03 +01:00
										 |  |  | BUILT_SOURCES= .version | 
					
						
							|  |  |  | .version: | 
					
						
							|  |  |  | 	$(AM_V_GEN)echo $(VERSION) > $@-t && mv $@-t $@ | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  | 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 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | #full program prefix | 
					
						
							|  |  |  | fpp = $(DESTDIR)$(bindir)/@real_program_prefix@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | install-exec-hook: | 
					
						
							|  |  |  | 	@if [ "x@NO_VIXIE_CLOBBER@" != "xyes"   -a   "`id -u`" -eq "0" ]; then \ | 
					
						
							|  |  |  |        rm -f $(fpp)cron$(EXEEXT) > /dev/null 2>&1; \ | 
					
						
							|  |  |  |        $(INSTALL) --mode='u=rwx' mcron$(EXEEXT) $(fpp)cron$(EXEEXT); \ | 
					
						
							|  |  |  |        rm -f $(fpp)crontab$(EXEEXT) > /dev/null 2>&1; \ | 
					
						
							|  |  |  |        $(INSTALL) --mode='u=rwxs,og=rx' mcron$(EXEEXT) $(fpp)crontab$(EXEEXT); \ | 
					
						
							|  |  |  |        $(INSTALL) -d --mode='u=rwx' $(DESTDIR)/var/cron; \ | 
					
						
							|  |  |  |        $(INSTALL) -d --mode='u=rwx,og=rx' $(DESTDIR)/var/run; \ | 
					
						
							|  |  |  |        $(INSTALL) -d --mode='u=rwx,og=rx' $(DESTDIR)@GUILE_SITE@; \ | 
					
						
							|  |  |  |        $(INSTALL) -d --mode='u=rwx,og=rx' $(DESTDIR)@GUILE_SITE@/mcron; \ | 
					
						
							|  |  |  |     elif [ "x@NO_VIXIE_CLOBBER@" = "xyes" ]; then \ | 
					
						
							|  |  |  |        echo "Not installing Vixie-style programs"; \ | 
					
						
							|  |  |  |     else \ | 
					
						
							|  |  |  |        echo "+++ WARNING: NON-ROOT INSTALL: ONLY mcron WILL BE INSTALLED, NOT ANY OF THE VIXIE REPLACEMENT PROGRAMS"; \ | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | uninstall-hook: | 
					
						
							|  |  |  | 	if [ "`id -u`" -eq "0" ]; then \ | 
					
						
							|  |  |  |         rm -f $(fpp){cron,crontab}$(EXEEXT); \ | 
					
						
							|  |  |  |     fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-12-28 23:06:03 +01:00
										 |  |  | EXTRA_DIST = \ | 
					
						
							| 
									
										
										
										
											2016-12-28 23:13:30 +01:00
										 |  |  |   build-aux/guix.scm \ | 
					
						
							| 
									
										
										
										
											2016-12-28 23:06:03 +01:00
										 |  |  |   .version \ | 
					
						
							|  |  |  |   $(TESTS) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2016-05-10 20:46:06 +02:00
										 |  |  | MAINTAINERCLEANFILES = $(dist_man_MANS) | 
					
						
							| 
									
										
										
										
											2016-05-07 13:58:50 +02:00
										 |  |  | DISTCLEANFILES = src/config.scm | 
					
						
							| 
									
										
										
										
											2016-07-05 01:11:49 +02:00
										 |  |  | CLEANFILES = \ | 
					
						
							|  |  |  |   $(modules:%.scm=%.go) \ | 
					
						
							|  |  |  |   src/mcron/config.go | 
					
						
							| 
									
										
										
										
											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 | 
					
						
							| 
									
										
										
										
											2016-05-10 20:46:06 +02:00
										 |  |  | dist_man_MANS = \ | 
					
						
							|  |  |  |   $(srcdir)/doc/mcron.1 \ | 
					
						
							|  |  |  |   $(srcdir)/doc/crontab.1 \ | 
					
						
							|  |  |  |   $(srcdir)/doc/cron.8 | 
					
						
							| 
									
										
										
										
											2015-10-17 19:56:03 +02:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											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
										 |  |  | 
 | 
					
						
							|  |  |  | ## -------------- ## | 
					
						
							|  |  |  | ## 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 |