SummaryRefsLogTreeCommitDiffStats
path: root/makefile.am
diff options
context:
space:
mode:
authorDale Mellor <dale@rdmp.org>2010-06-13 03:49:39 +0100
committerDale Mellor <dale@rdmp.org>2010-06-13 03:49:39 +0100
commit323033546da8d2b00ef993223cc83b003e183aa0 (patch)
treed4824920b115643e2547eb3b1364e22e5436c2a7 /makefile.am
parentf76377aa373b9553836e84402015d4da6685a184 (diff)
downloadmcron-323033546da8d2b00ef993223cc83b003e183aa0.tar.gz
mcron-323033546da8d2b00ef993223cc83b003e183aa0.tar.bz2
mcron-323033546da8d2b00ef993223cc83b003e183aa0.zip
Added --enable-no-vixie-clobber to configure.ac.
Diffstat (limited to 'makefile.am')
-rw-r--r--makefile.am14
1 files changed, 8 insertions, 6 deletions
diff --git a/makefile.am b/makefile.am
index dee61af..8953729 100644
--- a/makefile.am
+++ b/makefile.am
@@ -50,12 +50,12 @@ pkgdata_DATA = core.scm environment.scm job-specifier.scm redirect.scm \
# of this).
core.scm : mcron-core.scm
- $(CP) mcron-core.scm core.scm
+ $(CP) mcron-core.scm core.scm
mcron.c : main.scm 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
+ @echo 'Building mcron.c...'
+ @$(ED) < makefile.ed > /dev/null 2>&1
+ @rm -f mcron.escaped.scm > /dev/null 2>&1
#full program prefix
@@ -63,7 +63,7 @@ fpp = $(DESTDIR)$(bindir)/@real_program_prefix@
install-exec-hook:
- @if [ "`id -u`" -eq "0" ]; then \
+ @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; \
@@ -72,12 +72,14 @@ install-exec-hook:
$(INSTALL) -d --mode='u=rwx,og=rx' /var/run; \
$(INSTALL) -d --mode='u=rwx,og=rx' @GUILE_SITE@; \
$(INSTALL) -d --mode='u=rwx,og=rx' @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 \
+ if [ "`id -u`" -eq "0" ]; then \
rm -f $(fpp){cron,crontab}$(EXEEXT); \
fi