changeset 11:e44b90f68009

Makefile: mode
author ng0 <ng0@crash.cx>
date Thu, 22 Feb 2018 16:14:19 +0000
parents ecb2bfe389fb
children c2634f05ecdf
files Makefile
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Feb 22 16:11:32 2018 +0000
+++ b/Makefile	Thu Feb 22 16:14:19 2018 +0000
@@ -6,6 +6,7 @@
 LDLIBS+=-lz
 PREFIX?=/usr/local
 MANPREFIX?=${PREFIX}/share/man
+PROG=cvsps
 OBJS=\
 	cbtcommon/debug.o\
 	cbtcommon/hash.o\
@@ -20,13 +21,13 @@
 	cvs_direct.o\
 	list_sort.o
 
-all: cvsps
+all: ${PROG}
 
 cvsps: $(OBJS)
 
 install:
 	install -d $(PREFIX)/bin $(MANPREFIX)/man1
-	install cvsps $(PREFIX)/bin
+	install -m 755 cvsps $(PREFIX)/bin
 	install -m 644 cvsps.1 $(MANPREFIX)/man1
 
 clean: