aboutsummaryrefslogtreecommitdiffstats
path: root/texinfo/Makefile
blob: beaa9d7d6ce845fd7b8aa4f6516b41842cc64908 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
.POSIX:
include ../common.mk

install:
	if test -x /usr/bin/info; then \
		mkdir -p -- ~/.config/bash/aliases.d && \
		test ! -d ~/.config/bash/aliases.d/texinfo && \
		ln -sf -- ~/.dotfiles/texinfo/bash-aliases ~/.config/bash/aliases.d/texinfo; \
	else \
		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