further improve make

parent 6e27d21d
......@@ -23,19 +23,20 @@ post_remove () {
installdirs_create ()
{
echo -e "\t${WHITE}+${MAGENTA} directories"
mkdir -p "${DESTDIR}"/"${DATADIR}"
mkdir -p "${DESTDIR}""${DATADIR}"
for directory in "${DATADIR_LIST[@]}"; do
mkdir -p "${DESTDIR}"/"${DATADIR}"/"${directory}"
mkdir -p "${DESTDIR}""${DATADIR}"/"${directory}"
done
mkdir -p "${DESTDIR}"/"${LOCALEDIR}"
mkdir -p "${DESTDIR}""${LOCALEDIR}"
for directory in "${LOCALEDIR_LIST[@]}"; do
mkdir -p "${DESTDIR}"/"${LOCALEDIR}"/"${directory}"
mkdir -p "${DESTDIR}""${LOCALEDIR}"/"${directory}"
done
mkdir -p "${DESTDIR}"/"${BINDIR}"
mkdir -p "${DESTDIR}"/"${ICONDIR}"
mkdir -p "${DESTDIR}"/"${PCDIR}"
mkdir -p "${DESTDIR}""${BINDIR}"
mkdir -p "${DESTDIR}""${ICONDIR}"
mkdir -p "${DESTDIR}""${PCDIR}"
mkdir -p "${DESTDIR}""${DOCDIR}"
}
inst ()
......@@ -49,9 +50,9 @@ inst ()
DEST=${2/*:}
if [[ ${1} == man ]]; then
install -m"${MODE}" "${FILE}".gz "${DESTDIR}""${DEST}"
install -m"${MODE}" ${FILE}.gz "${DESTDIR}""${DEST}"
else
install -m"${MODE}" "${FILE}" "${DESTDIR}""${DEST}"
install -m"${MODE}" ${FILE} "${DESTDIR}""${DEST}"
fi
unset TYPE FILE DEST
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment