forked from base16-manager/base16-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
40 lines (35 loc) · 1.2 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
TARGET=base16-manager
PREFIX=/usr
DESTDIR=
BINDIR=${PREFIX}/local/bin
LICENSEDIR=${PREFIX}/share/licenses
BASHCOMP=completion/completion.bash
BASHCOMPDIR=${PREFIX}/share/bash-completion/completions
ZSHCOMP=completion/completion.zsh
ZSHCOMPDIR=${PREFIX}/share/zsh/site-functions/
FISHCOMP=completion/completion.fish
FISHCOMPDIR=${PREFIX}/share/fish/vendor_completions.d/
install:
install -D -m755 ${TARGET} ${DESTDIR}${BINDIR}/${TARGET}
install -D -m644 LICENSE ${DESTDIR}${LICENSEDIR}/${TARGET}/LICENSE
@if [[ -d ${BASHCOMPDIR} ]] ; \
then \
echo "install completion for bash"; \
install -D -m644 ${BASHCOMP} ${DESTDIR}${BASHCOMPDIR}/base16-manager; \
fi;
@if [[ -d ${ZSHCOMPDIR} ]] ; \
then \
echo "install completion for zsh"; \
install -D -m644 ${ZSHCOMP} ${DESTDIR}${ZSHCOMPDIR}/_base16-manager; \
fi;
@if [[ -d ${FISHCOMPDIR} ]] ; \
then \
echo "install completion for fish"; \
install -D -m644 ${FISHCOMP} ${DESTDIR}${FISHCOMPDIR}/base16-manager.fish; \
fi;
clean:
rm -f ${DESTDIR}${BINDIR}/${TARGET}
rm -f ${DESTDIR}${LICENSEDIR}/${TARGET}/LICENSE
rm -f ${DESTDIR}${BASHCOMPDIR}/base16-manager
rm -f ${DESTDIR}${ZSHCOMPDIR}/_base16-manager
rm -f ${DESTDIR}${FISHCOMPDIR}/base16-manager.fish