Commit ff3950df authored by Per Cederqvist's avatar Per Cederqvist

(sysconf_DATA): Added, but empty.

(EXTRA_DIST): Added config and aux-items.conf.
(komrunning): The current standard names the variable sysconfdir, not etcdir.
(savecore): Likewise.
(install-data-local): Likewise.
parent d598615c
# $Id: Makefile.am,v 1.1 1998/07/08 22:27:20 ceder Exp $
# $Id: Makefile.am,v 1.2 1998/07/10 21:47:23 ceder Exp $
# Copyright (C) 1998 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -24,21 +24,29 @@
bin_SCRIPTS = komrunning savecore
# config and aux-items.conf should be in sysconf_DATA, but we don't
# want to install them on top of any configuration that the user may
# have edited. The empty sysconf_DATA tricks automake to create the
# directory before install-data-local is run.
sysconf_DATA =
EXTRA_DIST = config aux-items.conf
MOSTLYCLEANFILES = komrunning savecore
komrunning: komrunning.sh
sed -e 's%@ETCDIR@%$(etcdir)%g' < $(srcdir)/komrunning.sh > $@.tmp
sed -e 's%@ETCDIR@%$(sysconfdir)%g' < $(srcdir)/komrunning.sh > $@.tmp
chmod +x $@.tmp
mv $@.tmp $@
savecore: savecore.sh
sed -e 's%@ETCDIR@%$(etcdir)%g' < $(srcdir)/savecore.sh > $@.tmp
sed -e 's%@ETCDIR@%$(sysconfdir)%g' < $(srcdir)/savecore.sh > $@.tmp
chmod +x $@.tmp
mv $@.tmp $@
install-data-local:
test -f $(DESTDIR)/$(etcdir)/config \
|| $(INSTALL_DATA) $(srcdir)/config $(DESTDIR)/$(etcdir)/config
test -f $(DESTDIR)/$(etcdir)/aux-items.conf \
test -f $(DESTDIR)$(sysconfdir)/config \
|| $(INSTALL_DATA) $(srcdir)/config \
$(DESTDIR)$(sysconfdir)/config
test -f $(DESTDIR)$(sysconfdir)/aux-items.conf \
|| $(INSTALL_DATA) $(srcdir)/aux-items.conf \
$(DESTDIR)/$(etcdir)/aux-items.conf
$(DESTDIR)$(sysconfdir)/aux-items.conf
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