Commit 14622043 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(EXTRA_DIST): Added number.txt.

(install-data-local): Install number.txt.
(uninstall-local): Remove number.txt.  Don't remove anything if
	number.txt is altered.
parent 429050d6
# $Id: Makefile.am,v 1.7 2002/11/02 10:47:47 ceder Exp $
# $Id: Makefile.am,v 1.8 2002/11/04 23:21:03 ceder Exp $
# Copyright (C) 1998 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -30,7 +30,8 @@ dbdir = $(prefix)/db
# want to install them if they already exist. This is the same
# situation that we have in run-support/Makefile.am.
db_DATA =
EXTRA_DIST = lyskomd-data lyskomd-texts .cvsignore lyskomd-data-en
EXTRA_DIST = lyskomd-data lyskomd-texts .cvsignore lyskomd-data-en \
number.txt
install-data-local: installdirs
if test -f $(DESTDIR)$(dbdir)/lyskomd-data \
......@@ -43,16 +44,21 @@ install-data-local: installdirs
$(DESTDIR)$(dbdir)/lyskomd-data || exit 1 ; \
$(INSTALL_DATA) $(srcdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/lyskomd-texts || exit 1; \
$(INSTALL_DATA) $(srcdir)/number.txt \
$(DESTDIR)$(dbdir)/number.txt || exit 1; \
fi
uninstall-local:
if cmp $(srcdir)/lyskomd-data$(LANGUAGE_SUFFIX) \
$(DESTDIR)$(dbdir)/lyskomd-data \
&& cmp $(srcdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/lyskomd-texts ; \
$(DESTDIR)$(dbdir)/lyskomd-texts \
&& cmp $(srcdir)/number.txt \
$(DESTDIR)$(dbdir)/number.txt ; \
then \
$(RM) $(DESTDIR)$(dbdir)/lyskomd-data \
$(DESTDIR)$(dbdir)/lyskomd-texts; \
$(DESTDIR)$(dbdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/number.txt; \
else \
echo '*******************************************************' ; \
echo 'Cowardly refusing to uninstall the modified database in' ; \
......
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