Skip to content

Commit

Permalink
Don't compress man page
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Blach committed Jul 9, 2013
1 parent 6e8eb5b commit 71c64bc
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,26 @@ LIBS=-lpam $(shell if [ `uname` = Linux ]; then echo -lpam_misc; fi)
PREFIX?=/usr/local


all: ${BIN} ${MAN}.gz
all: ${BIN} ${MAN}

${BIN}: ${OBJ}
${CC} ${LDFLAGS} -o $@ ${OBJ} ${LIBS}

.c.o:
${CC} -c ${CFLAGS} -o $@ $<

${MAN}.gz:
rst2man ${BIN}.rst > ${MAN}
gzip -f -9 ${MAN}
${MAN}:
rst2man ${BIN}.rst $@

install: all
install -m 0755 -o 0 -g 0 -d ${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 0444 -o 0 -g 0 ${MAN}.gz ${PREFIX}/man/man1
install -m 0444 -o 0 -g 0 ${MAN} ${PREFIX}/man/man1

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


${BIN}.o: ${BIN}.c
${MAN}.gz: ${BIN}.rst
${MAN}: ${BIN}.rst

0 comments on commit 71c64bc

Please sign in to comment.