Fix aggressive "rm -rf" in uninstall target #389
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
lcov's
make uninstall
wiped my~/.local/share
. This was... surprising.The offending line is
lcov/Makefile
Line 190 in b1a5332
SHARE_DIR_INST
comes from:So,
make uninstall PREFIX=${HOME}/.local
would give us:rm -rf `dirname /home/nega/.local/share/lcov`
and, since
dirname
gives us the "last non-slash component and trailing slashes removed" we're just doingrm -rf /home/nega/.local/share`
On the Good/Bad Scale, this ranks as a "Bad". I'm glad I didn't use the default
PREFIX
of/usr/local
. Losing/usr/local/share
would have been more than an "inconvenience".This PR removes this gross hammer, by removing the examples and tests from the
make install
target. It also cleans up the manpages thatmake uninstall
ignores.Ideally, the
uninstall
target would be removed outright until a less fragile version is developed.Signed-off-by: nega [email protected]