| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | ## Makefile for the toplevel directory of mcron. | 
					
						
							|  |  |  | ## Copyright (C) 2003 Dale Mellor | 
					
						
							|  |  |  | ## | 
					
						
							| 
									
										
										
										
											2008-02-21 19:11:23 +00:00
										 |  |  | #    This file is part of GNU mcron. | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | #    GNU mcron is free software: you can redistribute it and/or modify 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. | 
					
						
							|  |  |  | #  | 
					
						
							|  |  |  | #    GNU mcron is distributed in the hope that it will be useful, 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 along | 
					
						
							|  |  |  | #    with GNU mcron.  If not, see <http://www.gnu.org/licenses/>. | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ## Process this file with automake to produce Makefile.in | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | ED = @ED@   # !!!! Are these needed? | 
					
						
							| 
									
										
										
										
											2003-08-03 15:14:54 +00:00
										 |  |  | CP = @CP@ | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2006-04-16 22:10:43 +00:00
										 |  |  | MAINTAINERCLEANFILES = configure makefile makefile.in config.guess config.sub \ | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  |                        install-sh missing mkinstalldirs texinfo.tex INSTALL \ | 
					
						
							| 
									
										
										
										
											2008-02-21 19:11:23 +00:00
										 |  |  |                        aclocal.m4 compile depcomp | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-08-03 15:14:54 +00:00
										 |  |  | CLEANFILES = mcron.c core.scm | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-08-03 15:14:54 +00:00
										 |  |  | EXTRA_DIST = makefile.ed main.scm mcron-core.scm vixie-specification.scm \ | 
					
						
							|  |  |  |              crontab.scm environment.scm job-specifier.scm redirect.scm \ | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  |              vixie-time.scm mcron.c.template BUGS | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-01-25 21:49:16 +00:00
										 |  |  | AM_LDFLAGS = @GUILE_LDFLAGS@ | 
					
						
							|  |  |  | AM_CFLAGS  = @GUILE_CFLAGS@ -DGUILE_LOAD_PATH=\"$(datadir)\" | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | info_TEXINFOS = mcron.texinfo | 
					
						
							| 
									
										
										
										
											2008-01-25 21:49:16 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-06-12 22:39:20 +01:00
										 |  |  | dist_man1_MANS = mcron.1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | bin_PROGRAMS = mcron | 
					
						
							|  |  |  | mcron_SOURCES = mcron.c | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | pkgdata_DATA = core.scm environment.scm job-specifier.scm redirect.scm \ | 
					
						
							|  |  |  |                vixie-time.scm vixie-specification.scm config.scm | 
					
						
							| 
									
										
										
										
											2003-08-03 15:14:54 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # If you're wondering, the configure script keeps deleting all files with a name | 
					
						
							|  |  |  | # like core.*, so we have to keep re-making it (I lost a good day's work because | 
					
						
							|  |  |  | # of this). | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | core.scm : mcron-core.scm | 
					
						
							|  |  |  | 	$(CP) mcron-core.scm core.scm | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | mcron.c : main.scm crontab.scm makefile.ed mcron.c.template | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 	@echo 'Building mcron.c...' | 
					
						
							|  |  |  | 	@$(ED) < makefile.ed > /dev/null 2>&1 | 
					
						
							|  |  |  | 	@rm -f mcron.escaped.scm > /dev/null 2>&1 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | # !!!! Want to be able to install as non-root. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # install-exec-local: | 
					
						
							|  |  |  | # 	@if [ `id -u` -ne 0 ]; then \ | 
					
						
							|  |  |  | # 	    echo "*** MUST BE ROOT TO INSTALL MCRON ***"; \ | 
					
						
							|  |  |  | # 	    exit 1; \ | 
					
						
							|  |  |  | # 	fi | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #full program prefix | 
					
						
							|  |  |  | fpp = $(DESTDIR)$(bindir)/@real_program_prefix@ | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | install-exec-hook: | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | 	@if [ "`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); \ | 
					
						
							|  |  |  | 	   ./mkinstalldirs -m 'u=rwx' /var/cron; \ | 
					
						
							|  |  |  | 	   ./mkinstalldirs -m 'u=rwx,og=rx' /var/run; \ | 
					
						
							|  |  |  | 	   ./mkinstalldirs -m 'u=rwx,og=rx' @GUILE_SITE@; \ | 
					
						
							|  |  |  | 	   ./mkinstalldirs -m 'u=rwx,og=rx' @GUILE_SITE@/mcron; \ | 
					
						
							|  |  |  |     else \ | 
					
						
							|  |  |  |        echo "+++ WARNING: NON-ROOT INSTALL: ONLY mcron WILL BE INSTALLED, NOT ANY OF THE VIXIE REPLACEMENT PROGRAMS"; \ | 
					
						
							|  |  |  | 	fi | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2003-07-04 08:09:04 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | uninstall-hook: | 
					
						
							| 
									
										
										
										
											2005-10-23 12:29:19 +00:00
										 |  |  | 	if [ "`id -u`" -eq "0" ]; then \ | 
					
						
							|  |  |  | 	    rm -f $(fpp){cron,crontab}$(EXEEXT); \ | 
					
						
							|  |  |  | 	fi |