SummaryRefsLogTreeCommitDiffStats
path: root/makefile.am
diff options
context:
space:
mode:
authorDale Mellor <dale@rdmp.org>2010-06-13 11:02:25 +0100
committerDale Mellor <dale@rdmp.org>2010-06-13 11:02:25 +0100
commitbe34829b1be722b4a03a13d9576addc8f55e5859 (patch)
treeca986aa84645bb78dae347d2066aaa72ef18bfa5 /makefile.am
parenta5e51bfa85d7b53390691ed3ae7308a04b18607a (diff)
downloadmcron-be34829b1be722b4a03a13d9576addc8f55e5859.tar.gz
mcron-be34829b1be722b4a03a13d9576addc8f55e5859.tar.bz2
mcron-be34829b1be722b4a03a13d9576addc8f55e5859.zip
Fixed up makefile to provide rule to create man page (not done automatically), and to remove any installed info/dir files.
Diffstat (limited to 'makefile.am')
-rw-r--r--makefile.am20
1 files changed, 20 insertions, 0 deletions
diff --git a/makefile.am b/makefile.am
index 46dd170..32c12f8 100644
--- a/makefile.am
+++ b/makefile.am
@@ -77,9 +77,29 @@ install-exec-hook:
else \
echo "+++ WARNING: NON-ROOT INSTALL: ONLY mcron WILL BE INSTALLED, NOT ANY OF THE VIXIE REPLACEMENT PROGRAMS"; \
fi
+ @echo
+ @echo " AFTER INSTALLATION, CONSIDER RUNNING make cook-up-man"
+ @echo
uninstall-hook:
if [ "`id -u`" -eq "0" ]; then \
rm -f $(fpp){cron,crontab}$(EXEEXT); \
fi
+
+
+# Debian lintian barfs if we install an info top-level.
+
+install-data-hook:
+ if [ -f $(DESTDIR)$(infodir)/dir -o -f $(DESTDIR)$(infodir)/dir.gz ]; \
+ then \
+ rm $(DESTDIR)$(infodir)/dir*; \
+ fi
+
+
+# Not part of formal package building, but a rule for manual use to get the
+# elemental man page. Will only work once the mcron program is installed.
+cook-up-man:
+ help2man -n 'a program to run tasks at regular (or not) intervals' \
+ $(fpp)mcron > mcron.1
+ $(MAKE) install