autotools: Only uninstall what we actually installed
commitc38f59bbc422e2e39eeb1e5bdae2258214a0e86a
authorColomban Wendling <ban@herbesfolles.org>
Mon, 13 Oct 2014 21:53:00 +0000 (13 23:53 +0200)
committerColomban Wendling <ban@herbesfolles.org>
Mon, 13 Oct 2014 21:59:40 +0000 (13 23:59 +0200)
tree9309eda3e8d98e78300be5e7aab53e8ed5f7b587
parent16716e498d133a627f593007b96d8b5d83e0f1d5
autotools: Only uninstall what we actually installed

Only manually uninstall the files we manually installed, as
uninstall-local might be run in parallel to Automake's own uninstall
targets.

We don't uninstall the directories as some docs seems to suggest
`rmdir` isn't really portable.  Anyway, Automake don't uninstall
directories either so it's not a real problem.

An alternative solution would be to keep the recursive removal of
`$(DOCDIR)` but move it to `uninstall-hook`, which is guaranteed to be
run after other uninstall rules.  However, recursive deletion is not
always sensible as it might remove files we didn't install, e.g. if the
user added them manually.
doc/Makefile.am