+2008-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
+
+ Multiple 'make uninstall' should not fail even for TEXINFOS.
+ * lib/am/texinfos.am (uninstall-info-am): Do not fail due to
+ install-info if the installed file does not exist (any more).
+ * tests/txinfo26.test: Issue multiple `make uninstall'.
+ * tests/instmany-mans.test: Likewise.
+ * tests/instmany-python.test: Likewise.
+ * tests/instmany.test: Likewise.
+ * tests/txinfo26.test: Likewise.
+ * NEWS: Update.
+
2008-11-03 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
New public macro AM_SUBST_NOTMAKE.
installation directory now, when no build-local scripts are used.
For builtin rules, `make install' now fails reliably if installation
- of a file failed.
+ of a file failed. Conversely, `make uninstall' even succeeds when
+ issued multiple times.
These changes may need some adjustments from users: For example,
some `install' programs refuse to install multiple copies of the
for file in $$list; do \
relfile=`echo "$$file" | sed 's|^.*/||'`; \
echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
- install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
+ if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
+ then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \
done; \
else :; fi
@$(NORMAL_UNINSTALL)
relfile=`echo "$$file" | sed 's|^.*/||'`; \
## install-info needs the actual info file. We use the installed one,
## rather than relying on one still being in srcdir or builddir.
+## However, `make uninstall && make uninstall' should not fail,
+## so we ignore failure if the file did not exist.
echo " install-info --info-dir='$(DESTDIR)$(infodir)' --remove '$(DESTDIR)$(infodir)/$$relfile'"; \
- install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
+ if install-info --info-dir="$(DESTDIR)$(infodir)" --remove "$(DESTDIR)$(infodir)/$$relfile"; \
+ then :; else test ! -f "$(DESTDIR)$(infodir)/$$relfile" || exit 1; fi; \
done; \
else :; fi
@$(NORMAL_UNINSTALL)
$MAKE
# Try whether native install (or install-sh) works.
$MAKE install
+# Multiple uninstall should work, too.
+$MAKE uninstall
$MAKE uninstall
test `find "$instdir" -type f -print | wc -l` = 0
$MAKE
# Try whether native install (or install-sh) works.
$MAKE install
+# Multiple uninstall should work, too.
+$MAKE uninstall
$MAKE uninstall
test `find "$instdir" -type f -print | wc -l` = 0
$MAKE
# Try whether native install (or install-sh) works.
$MAKE install
+# Multiple uninstall should work, too.
+$MAKE uninstall
$MAKE uninstall
test `find "$instdir" -type f -print | wc -l` = 0
#! /bin/sh
-# Copyright (C) 2003, 2007 Free Software Foundation, Inc.
+# Copyright (C) 2003, 2007, 2008 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
$MAKE uninstall
test ! -f _inst/info/main.info
test -f ../main.info
+
+# multiple uninstall should not fail.
+$MAKE uninstall