From c6fc67288a63d143851171d871ae06fa90baa54f Mon Sep 17 00:00:00 2001 From: Jim Cheetham Date: Tue, 20 Aug 2013 21:53:37 -0400 Subject: [PATCH] Install man files under $(PREFIX) --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index ff65bab..3610c73 100644 --- a/src/Makefile +++ b/src/Makefile @@ -7,7 +7,7 @@ PREFIX=/usr/local INSTALL=install INSTALLDATA=install -m 644 -mandir=/usr/share/man/man1/ +mandir=$(PREFIX)/man/man1/ bindir=$(PREFIX)/sbin # Hardening and warnings for building with gcc @@ -55,6 +55,7 @@ zopt.c zopt.h: zopt.ggo install: zmap $(INSTALL) zmap $(bindir)/zmap test -d /etc/zmap || (mkdir /etc/zmap && $(INSTALLDATA) ../conf/* /etc/zmap/) + test -d $(mandir) || mkdir -p $(mandir) $(INSTALLDATA) ./zmap.1 $(mandir) @echo "\n**************\nSuccess! ZMap is installed. Try running (as root):\nzmap -p 80 -N 10 -B 1M -o -\n**************"