From 7cd445591c41ea0203817f2b7a6d6d4e46ced54b Mon Sep 17 00:00:00 2001 From: david Date: Mon, 5 May 2008 18:00:31 +0000 Subject: [PATCH] Use DESTDIR in the uninstall target in Makefile.in. This is, for example, what Automake does. Otherwise, when you run an uninstall, it will delete /usr/bin/nmap, not the nmap you might be staging elsewhere. This has no effect if DESTDIR is undefined. --- Makefile.in | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.in b/Makefile.in index 176da8354..0e38787e2 100644 --- a/Makefile.in +++ b/Makefile.in @@ -235,9 +235,9 @@ install: install-nmap $(INSTALLNSE) $(INSTALLZENMAP) @echo "NMAP SUCCESSFULLY INSTALLED" uninstall: - rm -f $(bindir)/$(TARGET) $(bindir)/xnmap - rm -f $(mandir)/man1/$(TARGET).1 $(mandir)/man1/zenmap.1 - rm -rf $(nmapdatadir) $(nmaplibexecdir) + rm -f $(DESTDIR)$(bindir)/$(TARGET) $(DESTDIR)$(bindir)/xnmap + rm -f $(DESTDIR)$(mandir)/man1/$(TARGET).1 $(DESTDIR)$(mandir)/man1/zenmap.1 + rm -rf $(DESTDIR)$(nmapdatadir) $(DESTDIR)$(nmaplibexecdir) ${srcdir}/configure: configure.ac cd ${srcdir} && autoconf