aboutsummaryrefslogtreecommitdiffstats
path: root/texinfo/Makefile
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--texinfo/Makefile19
1 files changed, 8 insertions, 11 deletions
diff --git a/texinfo/Makefile b/texinfo/Makefile
index beaa9d7..8ea0ad7 100644
--- a/texinfo/Makefile
+++ b/texinfo/Makefile
@@ -1,20 +1,17 @@
.POSIX:
-include ../common.mk
install:
- if test -x /usr/bin/info; then \
+ if ../check-in-path info; then \
mkdir -p -- ~/.config/bash/aliases.d && \
- test ! -d ~/.config/bash/aliases.d/texinfo && \
+ (test ! -e ~/.config/bash/aliases.d/texinfo || \
+ test -L ~/.config/bash/aliases.d/texinfo) && \
ln -sf -- ~/.dotfiles/texinfo/bash-aliases ~/.config/bash/aliases.d/texinfo; \
else \
- make uninstall; \
+ $(MAKE) uninstall; \
fi
uninstall:
- -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
+ +! ../check-installed info
+ +! ../check-installed texinfo
+ unlink -- ~/.config/bash/aliases.d/texinfo
+ rmdir -- ~/.config/bash/aliases.d