Advertisement
ponce

masscan

Apr 14th, 2014
487
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. From 476bf0bb3eac4b375090132f5ca95a3faa475363 Mon Sep 17 00:00:00 2001
  2. From: ponce <matteo.bernardini@gmail.com>
  3. Date: Mon, 14 Apr 2014 12:37:06 +0200
  4. Subject: [PATCH] Fix the install options on MacOS X.
  5.  
  6. https://www.gnu.org/prep/standards/html_node/Command-Variables.html#Command-Variables
  7. ---
  8. Makefile | 4 +++-
  9. 1 file changed, 3 insertions(+), 1 deletion(-)
  10.  
  11. diff --git a/Makefile b/Makefile
  12. index fe61b03..732efa9 100644
  13. --- a/Makefile
  14. +++ b/Makefile
  15. @@ -2,6 +2,7 @@ PREFIX ?= /usr
  16. BINDIR ?= $(PREFIX)/bin
  17. SYS := $(shell gcc -dumpmachine)
  18. GITVER := $(shell git describe --tags)
  19. +INSTALL_DATA := -pDm755
  20.  
  21. ifeq ($(GITVER),)
  22. GITVER = "unknown"
  23. @@ -25,6 +26,7 @@ ifneq (, $(findstring darwin, $(SYS)))
  24. LIBS = -lpcap -lm -rdynamic
  25. INCLUDES = -I.
  26. FLAGS2 =
  27. +INSTALL_DATA := -pm755
  28. endif
  29.  
  30. # MinGW on Windows
  31. @@ -100,6 +102,6 @@ regress: bin/masscan
  32. bin/masscan --selftest
  33.  
  34. install: bin/masscan
  35. - install -pDm755 bin/masscan $(DESTDIR)$(BINDIR)/masscan
  36. + install $(INSTALL_DATA) bin/masscan $(DESTDIR)$(BINDIR)/masscan
  37.  
  38. default: bin/masscan
  39. --
  40. 1.9.2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement