mirror of
https://github.com/nmap/nmap.git
synced 2026-06-13 11:38:18 +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:
parent
298fe63173
commit
7cd445591c
1 changed files with 3 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue