forked from Telodendria/Telodendria
remove use of install in Makefile
not posix
This commit is contained in:
parent
e263eca5dc
commit
f90e478703
1 changed files with 8 additions and 3 deletions
11
configure
vendored
11
configure
vendored
|
@ -231,15 +231,19 @@ compile_schema() {
|
||||||
install_out() {
|
install_out() {
|
||||||
src="$1"
|
src="$1"
|
||||||
out="$2"
|
out="$2"
|
||||||
|
dir=$(dirname "$out")
|
||||||
|
|
||||||
echo "${TAB}install -D \"$src\" \"$out\""
|
echo "${TAB}mkdir -p \"$dir\""
|
||||||
|
echo "${TAB}cp \"$src\" \"$out\""
|
||||||
}
|
}
|
||||||
|
|
||||||
install_man() {
|
install_man() {
|
||||||
src="${OUT}/man/man3/${BIN_NAME}-$(basename $1 .h).3"
|
src="${OUT}/man/man3/${BIN_NAME}-$(basename $1 .h).3"
|
||||||
out="$2"
|
out="$2"
|
||||||
|
dir=$(dirname "$out")
|
||||||
|
|
||||||
echo "${TAB}install -D \"$src\" \"$out\""
|
echo "${TAB}mkdir -p \"$dir\""
|
||||||
|
echo "${TAB}cp \"$src\" \"$out\""
|
||||||
}
|
}
|
||||||
|
|
||||||
uninstall_out() {
|
uninstall_out() {
|
||||||
|
@ -287,7 +291,8 @@ ${TAB}done
|
||||||
${BIN_NAME}: ${OUT}/bin/${BIN_NAME}
|
${BIN_NAME}: ${OUT}/bin/${BIN_NAME}
|
||||||
|
|
||||||
install: ${BIN_NAME}
|
install: ${BIN_NAME}
|
||||||
${TAB}install -D ${OUT}/bin/${BIN_NAME} \$(PREFIX)/bin/${BIN_NAME}
|
mkdir -p \$(PREFIX)/bin
|
||||||
|
cp ${OUT}/bin/${BIN_NAME} \$(PREFIX)/bin/${BIN_NAME}
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
${TAB}rm \$(PREFIX)/bin/${BIN_NAME}
|
${TAB}rm \$(PREFIX)/bin/${BIN_NAME}
|
||||||
|
|
Loading…
Reference in a new issue