Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- From 476bf0bb3eac4b375090132f5ca95a3faa475363 Mon Sep 17 00:00:00 2001
- From: ponce <matteo.bernardini@gmail.com>
- Date: Mon, 14 Apr 2014 12:37:06 +0200
- Subject: [PATCH] Fix the install options on MacOS X.
- https://www.gnu.org/prep/standards/html_node/Command-Variables.html#Command-Variables
- ---
- Makefile | 4 +++-
- 1 file changed, 3 insertions(+), 1 deletion(-)
- diff --git a/Makefile b/Makefile
- index fe61b03..732efa9 100644
- --- a/Makefile
- +++ b/Makefile
- @@ -2,6 +2,7 @@ PREFIX ?= /usr
- BINDIR ?= $(PREFIX)/bin
- SYS := $(shell gcc -dumpmachine)
- GITVER := $(shell git describe --tags)
- +INSTALL_DATA := -pDm755
- ifeq ($(GITVER),)
- GITVER = "unknown"
- @@ -25,6 +26,7 @@ ifneq (, $(findstring darwin, $(SYS)))
- LIBS = -lpcap -lm -rdynamic
- INCLUDES = -I.
- FLAGS2 =
- +INSTALL_DATA := -pm755
- endif
- # MinGW on Windows
- @@ -100,6 +102,6 @@ regress: bin/masscan
- bin/masscan --selftest
- install: bin/masscan
- - install -pDm755 bin/masscan $(DESTDIR)$(BINDIR)/masscan
- + install $(INSTALL_DATA) bin/masscan $(DESTDIR)$(BINDIR)/masscan
- default: bin/masscan
- --
- 1.9.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement