Skip to content

Commit

Permalink
Fixed the Mac OS X install
Browse files Browse the repository at this point in the history
Mac OS X install does not have the -D option.
Added the INSTALL_DATA variable as suggested in
http://www.gnu.org/prep/standards/html_node/Command-Variables.html
  • Loading branch information
luciopileggi committed Apr 14, 2014
1 parent a7bc4ae commit 7f02b8c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -25,6 +26,7 @@ ifneq (, $(findstring darwin, $(SYS)))
LIBS = -lpcap -lm -rdynamic
INCLUDES = -I.
FLAGS2 =
INSTALL_DATA = -pm755
endif

# MinGW on Windows
Expand Down Expand Up @@ -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

0 comments on commit 7f02b8c

Please sign in to comment.