# $Id: Makefile.am,v 1.17 2003/08/25 17:31:15 ceder Exp $ # Copyright (C) 1998-1999, 2001-2003 Lysator Academic Computer Association. # # This file is part of the LysKOM server. # # LysKOM 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 1, or (at your option) # any later version. # # LysKOM 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 LysKOM; see the file COPYING. If not, write to # Lysator, c/o ISY, Linkoping University, S-581 83 Linkoping, SWEDEN, # or the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, # MA 02139, USA. # # Please report bugs at http://bugzilla.lysator.liu.se/. # include $(top_srcdir)/scripts/common.make 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 savecore.sh aux-items.conf MOSTLYCLEANFILES = savecore-lyskom 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)/lyskomd.conf \ || $(INSTALL_DATA) $(srcdir)/config \ $(DESTDIR)$(sysconfdir)/lyskomd.conf $(mkinstalldirs) $(DESTDIR)$(localstatedir)/lyskomd.cores \ $(DESTDIR)$(exportdir) \ $(DESTDIR)$(localstatedir)/run uninstall-local: ## Remove config, but only if it hasn't been locally modified. if cmp $(srcdir)/config $(DESTDIR)$(sysconfdir)/lyskomd.conf ; \ then \ $(RM) $(DESTDIR)$(sysconfdir)/lyskomd.conf ; \ fi