1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 13:49:03 +00:00

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.
This commit is contained in:
david
2008-05-05 18:00:31 +00:00
parent 298fe63173
commit 7cd445591c

View File

@@ -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