From c51a014b4f15c1c38951672d3bb2b4a6e42d75b2 Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 6 Dec 2008 11:39:12 +0000 Subject: [PATCH] Improved 'make install' due to Petr Uzel --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 236ce15..facff00 100644 --- a/Makefile +++ b/Makefile @@ -24,8 +24,10 @@ check: echo "Not implemented" install: nethogs nethogs.8 - cp nethogs $(bin) - cp nethogs.8 $(man8) + install -d -m 755 $(bin) + install -m 755 nethogs $(bin) + install -d -m 755 $(man8) + install -m 644 nethogs.8 $(man8) nethogs: nethogs.cpp $(OBJS) $(CXX) $(CFLAGS) nethogs.cpp $(OBJS) -o nethogs -lpcap -lm -lncurses -DVERSION=\"$(VERSION)\" -DSUBVERSION=\"$(SUBVERSION)\" -DMINORVERSION=\"$(MINORVERSION)\"