remove old man if it is there
This commit is contained in:
parent
e4025464b0
commit
2aeb368f37
@ -8,6 +8,7 @@ PREFIX=/usr/local
|
|||||||
INSTALL=install
|
INSTALL=install
|
||||||
INSTALLDATA=install -m 644
|
INSTALLDATA=install -m 644
|
||||||
mandir=$(PREFIX)/man/man1/
|
mandir=$(PREFIX)/man/man1/
|
||||||
|
oldmanfile=/usr/share/man/man1/zmap.1
|
||||||
bindir=$(PREFIX)/sbin
|
bindir=$(PREFIX)/sbin
|
||||||
|
|
||||||
# Hardening and warnings for building with gcc
|
# Hardening and warnings for building with gcc
|
||||||
@ -56,6 +57,7 @@ zopt.c zopt.h: zopt.ggo
|
|||||||
install: zmap
|
install: zmap
|
||||||
$(INSTALL) zmap $(bindir)/zmap
|
$(INSTALL) zmap $(bindir)/zmap
|
||||||
test -d /etc/zmap || (mkdir /etc/zmap && $(INSTALLDATA) ../conf/* /etc/zmap/)
|
test -d /etc/zmap || (mkdir /etc/zmap && $(INSTALLDATA) ../conf/* /etc/zmap/)
|
||||||
|
test -f $(oldmanfile) && rm -f $(oldmanfile) && mandb -f $(oldmanfile) || /bin/true # remove old man page if it's there
|
||||||
test -d $(mandir) || mkdir -p $(mandir)
|
test -d $(mandir) || mkdir -p $(mandir)
|
||||||
$(INSTALLDATA) ./zmap.1 $(mandir)
|
$(INSTALLDATA) ./zmap.1 $(mandir)
|
||||||
@echo "\n**************\nSuccess! ZMap is installed. Try running (as root):\nzmap -p 80 -N 10 -B 1M -o -\n**************"
|
@echo "\n**************\nSuccess! ZMap is installed. Try running (as root):\nzmap -p 80 -N 10 -B 1M -o -\n**************"
|
||||||
|
Loading…
Reference in New Issue
Block a user