Commit 2bdb333f authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(sbin_SCRIPTS): Renamed savecore to savecore-lyskom, to avoid

	confusion with the /usr/bin/savecore program on Solaris.
(MOSTLYCLEANFILES): Track the change.
(savecore-lyskom): Track the change.
(install-data-local): Install the config file as lyskomd.conf, not
	config.  Create the lyskomd.cores directory.
(uninstall-local): Track the name change of lyskomd.conf.
parent 0c2fc272
# $Id: Makefile.am,v 1.12 2003/08/13 13:29:35 ceder Exp $
# $Id: Makefile.am,v 1.13 2003/08/16 10:50:57 ceder Exp $
# Copyright (C) 1998-1999, 2001-2002 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -24,27 +24,29 @@
include $(top_srcdir)/scripts/common.make
bin_SCRIPTS = savecore
sbin_SCRIPTS = savecore-lyskom
# config should be in sysconf_DATA, but we don't want to install it on
# top of any configuration that the user may have edited.
sysconf_DATA = aux-items.conf
EXTRA_DIST = config .cvsignore savecore.sh aux-items.conf
MOSTLYCLEANFILES = savecore
MOSTLYCLEANFILES = savecore-lyskom
savecore: savecore.sh
savecore-lyskom: savecore.sh
sed -e 's%@ETCDIR@%$(sysconfdir)%g' < $(srcdir)/savecore.sh > $@.tmp
chmod +x $@.tmp
mv $@.tmp $@
install-data-local: installdirs
test -f $(DESTDIR)$(sysconfdir)/config \
test -f $(DESTDIR)$(sysconfdir)/lyskomd.conf \
|| $(INSTALL_DATA) $(srcdir)/config \
$(DESTDIR)$(sysconfdir)/config
$(DESTDIR)$(sysconfdir)/lyskomd.conf
$(mkinstalldirs) $(DESTDIR)$(localstatedir)/lyskomd.cores
uninstall-local:
## Remove config, but only if it hasn't been locally modified.
if cmp $(srcdir)/config $(DESTDIR)$(sysconfdir)/config ; \
if cmp $(srcdir)/config $(DESTDIR)$(sysconfdir)/lyskomd.conf ; \
then \
$(RM) $(DESTDIR)$(sysconfdir)/config ; \
$(RM) $(DESTDIR)$(sysconfdir)/lyskomd.conf ; \
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment