-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (22 loc) · 983 Bytes
/
Makefile
File metadata and controls
31 lines (22 loc) · 983 Bytes
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
.PHONY : verify all
all : verify
verify :
@ which dmenu 2> /dev/null || ( echo WARNING dmenu is not present without it the dmenu command cannot be invoked )
@ which pdfinfo 2> /dev/null || ( echo ERROR pdfinfo is not present ; exit 1 )
@ which xdg-open 2> /dev/null || ( echo ERROR xdg-open is not present ; exit 1 )
@ echo SUCCESS all dependencies are present
install : doclib doclib.1 verify
@ echo
@ echo installing the script:
cp doclib ${HOME}/.local/bin/
chmod 755 ${HOME}/.local/bin/doclib
@mkdir -p ${HOME}/.local/man/man1
cp doclib.1 ${HOME}/.local/man/man1/
@ printf "\n\
# this installs doclib in ~/.local/bin please make sure that \n\
# it that directory is in your PATH. The man page is installed \n\
# at ~/.local/man please make sure that path is in your MANPATH \n\
# \n\
# to install autocompletions for zsh run \n\
cp doclib.zsh > path_to_zsh_extensions_folder \n\
echo source path_to_zsh_extensions_folder/doclib.zsh >> ~/.zshrc \n"