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

master
Luka Vandervelden 2016-04-12 11:48:54 +02:00
parent d0a163dcec
commit 0274ac704e
1 changed files with 11 additions and 6 deletions

View File

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