install[i]=- will work for .uninstall rules.

This commit is contained in:
Luka Vandervelden 2016-04-12 11:48:54 +02:00
parent d0a163dcec
commit 0274ac704e

View File

@ -314,6 +314,10 @@ function main {
write write
fi fi
if [[ "${installdir}" == "-" ]]; then
write "${target}.uninstall:"
write ""
else
if exists "${type[$target]}.uninstall"; then if exists "${type[$target]}.uninstall"; then
${type[$target]}.uninstall ${type[$target]}.uninstall
else else
@ -322,6 +326,7 @@ function main {
write "\t${Q}rm -f '\$(DESTDIR)${installdir}/${target}'" write "\t${Q}rm -f '\$(DESTDIR)${installdir}/${target}'"
write write
fi fi
fi
if exists "${type[$target]}.test"; then if exists "${type[$target]}.test"; then
${type[$target]}.test ${type[$target]}.test