2 INSTALL_DIR
= ${HOME}/.urxvt
3 SCRIPTS
= mark-yank-urls
5 INSTALL
= $(shell which
install)
7 .PHONY
: all help
install clean check_install_dir
14 @echo
" install install scripts in ${INSTALL_DIR}"
17 install: check_install_dir
${INSTALL} ${SCRIPTS}
18 ${INSTALL} -t
${INSTALL_DIR} ${SCRIPTS}
23 check_install_dir
: ${INSTALL}
24 @
[ -d
"${HOME}" ] ||
( echo
"environment variable HOME is not a directory" >&2 ; false
)
25 ${INSTALL} -d
${INSTALL_DIR}