Hook manpages in Makefile
This commit is contained in:
parent
98e5fcd07b
commit
ba20cb6fe0
7
Makefile
7
Makefile
@ -17,10 +17,13 @@
|
|||||||
P = ldnssec-utils
|
P = ldnssec-utils
|
||||||
V = 0.0
|
V = 0.0
|
||||||
|
|
||||||
|
MANPREFIX = ${PREFIX}/man
|
||||||
|
|
||||||
LIBHDR = util.h
|
LIBHDR = util.h
|
||||||
LIBOBJ = util.o
|
LIBOBJ = util.o
|
||||||
|
|
||||||
BIN = ldnssec-keygen ldnssec-sign-dnskey
|
BIN = ldnssec-keygen ldnssec-sign-dnskey
|
||||||
|
MAN1 = ldnssec-keygen.1
|
||||||
BINEX = ex-print-zone
|
BINEX = ex-print-zone
|
||||||
OBJ = ${BIN:=.o} ${BINEX:=.o} ${LIBOBJ}
|
OBJ = ${BIN:=.o} ${BINEX:=.o} ${LIBOBJ}
|
||||||
SRC = ${OBJ:.o=.c}
|
SRC = ${OBJ:.o=.c}
|
||||||
@ -47,9 +50,13 @@ install: all
|
|||||||
mkdir -p ${PREFIX}/bin
|
mkdir -p ${PREFIX}/bin
|
||||||
cp -f ${BIN} ${PREFIX}/bin
|
cp -f ${BIN} ${PREFIX}/bin
|
||||||
cd ${PREFIX}/bin && chmod 555 ${BIN}
|
cd ${PREFIX}/bin && chmod 555 ${BIN}
|
||||||
|
mkdir -p ${MANPREFIX}/man1
|
||||||
|
cp -f ${MAN1} ${MANPREFIX}/man1
|
||||||
|
cd ${MANPREFIX}/man1 && chmod 444 ${MAN1}
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
cd ${PREFIX}/bin && rm -f ${BIN}
|
cd ${PREFIX}/bin && rm -f ${BIN}
|
||||||
|
cd ${MANPREFIX}/man1 && rm -f ${MAN1}
|
||||||
|
|
||||||
util.o: util.h
|
util.o: util.h
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user