aboutsummaryrefslogtreecommitdiffstats
path: root/texinfo
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--texinfo/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/texinfo/Makefile b/texinfo/Makefile
index 4bd8ed1..beaa9d7 100644
--- a/texinfo/Makefile
+++ b/texinfo/Makefile
@@ -11,7 +11,10 @@ install:
fi
uninstall:
- -unlink -- ~/.config/bash/aliases.d/texinfo
- -rmdir -- ~/.config/bash/aliases.d
+ -if ! $(CHECK_INSTALLED) info 2>/dev/null && \
+ ! $(CHECK_INSTALLED) texinfo 2>/dev/null; then \
+ unlink -- ~/.config/bash/aliases.d/texinfo; \
+ rmdir -- ~/.config/bash/aliases.d; \
+ fi
.PHONY: install uninstall