diff --git a/Makefile b/Makefile index a6c1d66..92d3bda 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,9 @@ -BINDIR?=${HOME}/.local/bin -cmds=g kpick -fns=diralias j jmod nsalias rr +prefix?=$$HOME/.local +target_bin=${prefix}/bin +target_fun=${prefix}/share/mksh/funs +bin=g +fun=diralias j jmod nsalias rr install: - install ${fns} $${FPATH:?FPATH not defined} - install ${cmds} ${BINDIR} + install -d ${target_bin} ${target_fun} + install -c ${bin} ${target_bin} + install -c ${fun} ${target_fun} diff --git a/kpick b/kpick deleted file mode 100755 index f0263ad..0000000 --- a/kpick +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env ksh -(( $# == 0 )) && exit 64 -(( $# == 1 )) && echo $1 && exit 0 -select choice in "$@" -do - print $choice - break -done