Commit 972c51de authored by Per Cederqvist's avatar Per Cederqvist

(uninstall-local): New target. Remove lyskomd-data and lyskomd-texts,

	but only if they are unmodified.
parent 17e28831
# $Id: Makefile.am,v 1.5 1999/07/11 21:20:31 ceder Exp $
# $Id: Makefile.am,v 1.6 2001/09/29 15:43:34 ceder Exp $
# Copyright (C) 1998 Lysator Academic Computer Association.
#
# This file is part of the LysKOM server.
......@@ -43,3 +43,18 @@ install-data-local: installdirs
$(INSTALL_DATA) $(srcdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/lyskomd-texts || exit 1; \
fi
uninstall-local:
if cmp $(srcdir)/lyskomd-data$(LANGUAGE_SUFFIX) \
$(DESTDIR)$(dbdir)/lyskomd-data \
&& cmp $(srcdir)/lyskomd-texts \
$(DESTDIR)$(dbdir)/lyskomd-texts ; \
then \
$(RM) $(DESTDIR)$(dbdir)/lyskomd-data \
$(DESTDIR)$(dbdir)/lyskomd-texts; \
else \
echo '*******************************************************' ; \
echo 'Cowardly refusing to uninstall the modified database in' ; \
echo $(DESTDIR)$(dbdir) ; \
echo '*******************************************************' ; \
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