fix installation path of man page

This commit is contained in:
Alexandre Ratchov 2016-01-08 11:48:05 +01:00
parent 3b3a64a4fc
commit 9a493931b5
1 changed files with 8 additions and 8 deletions

View File

@ -15,28 +15,28 @@ LDADD = -lsndio @ldadd@
#
# binaries, documentation, man pages and examples will be installed in
# ${BIN_DIR}, ${MAN1_DIR}
# ${BIN_DIR}, ${MAN8_DIR}
#
BIN_DIR = @bindir@
MAN1_DIR = @mandir@/man1
MAN8_DIR = @mandir@/man8
#
# programs to build
#
PROG = sndiod
MAN1 = sndiod.1
MAN8 = sndiod.8
all: ${PROG} ${MAN1}
all: ${PROG}
install:
mkdir -p ${DESTDIR}${BIN_DIR} ${DESTDIR}${MAN1_DIR}
rm -f ${DESTDIR}${BIN_DIR}/${PROG} ${DESTDIR}${MAN1_DIR}/${MAN1}
mkdir -p ${DESTDIR}${BIN_DIR} ${DESTDIR}${MAN8_DIR}
rm -f ${DESTDIR}${BIN_DIR}/${PROG} ${DESTDIR}${MAN8_DIR}/${MAN8}
cp ${PROG} ${DESTDIR}${BIN_DIR}
cp ${MAN1} ${DESTDIR}${MAN1_DIR}
cp ${MAN8} ${DESTDIR}${MAN8_DIR}
uninstall:
cd ${DESTDIR}${BIN_DIR} && rm -f ${PROG}
cd ${DESTDIR}${MAN1_DIR} && rm -f ${MAN1}
cd ${DESTDIR}${MAN8_DIR} && rm -f ${MAN8}
clean:
rm -f -- *.o ${PROG}