Skip to content

Commit

Permalink
Install files as read-only even for owner
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Blach committed Jul 7, 2013
1 parent 4ff31f0 commit 6e8eb5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ CC?=cc
CFLAGS?=-O2 -march=native
LDFLAGS?=
LIBS=-lpam $(shell if [ `uname` = Linux ]; then echo -lpam_misc; fi)
PREFIX=/usr/local
PREFIX?=/usr/local


all: ${BIN} ${MAN}.gz
Expand All @@ -23,9 +23,9 @@ ${MAN}.gz:

install: all
install -m 0755 -o 0 -g 0 -d ${PREFIX}/bin
install -m 6755 -o 0 -g 0 -s ${BIN} ${PREFIX}/bin
install -m 6555 -o 0 -g 0 -s ${BIN} ${PREFIX}/bin
install -m 0755 -o 0 -g 0 -d ${PREFIX}/man/man1
install -m 0644 -o 0 -g 0 ${MAN}.gz ${PREFIX}/man/man1
install -m 0444 -o 0 -g 0 ${MAN}.gz ${PREFIX}/man/man1

clean:
rm -f ${BIN} *.o ${MAN} ${MAN}.gz
Expand Down

0 comments on commit 6e8eb5b

Please sign in to comment.