aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2021-03-12 14:03:47 +0000
committermerakor <cem@ckyln.com>2021-03-12 14:03:47 +0000
commit257ba31f390a04fd69aaea452243bd21fc448d2f (patch)
tree0d866cd0f950ed729b9d692c2ce3429c4f1e81ff
parentfc8de2a8f48485ad8b035a4e76098c4a7dbadb05 (diff)
downloadcpt-257ba31f390a04fd69aaea452243bd21fc448d2f.tar.gz
Makefile: install 'contrib' manual pages.
FossilOrigin-Name: b853ba32111746b5fdb959a8c626aeb8d506ba3d060e3188aac96d1380dc0686
-rw-r--r--Makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 75b5770..ed1975b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,9 @@
include config.mk
INSTALL_SH = ./tools/install.sh
-BIN = `find contrib src -name 'cpt*' ! -name '*.*'`
+CONTRIB = `find contrib src -name 'cpt*' ! -name '*.*'`
+SRC = `find contrib src -name 'cpt*' ! -name '*.*'`
+BIN = ${SRC} ${CONTRIB}
LIB = src/cpt-lib
LIB_IN = ${LIB:=.in}
@@ -29,12 +31,17 @@ install: all
test "${DOCS}" != yes || ${MAKE} -C docs install
${INSTALL_SH} -Dm755 -t ${DESTDIR}${BINDIR} ${BIN}
${INSTALL_SH} -Dm644 -t ${DESTDIR}${MAN1} man/*.1
+ for man in ${CONTRIB}; do \
+ ./tools/tool2man.sh $$man > "${DESTDIR}${MAN1}/$${man##*/}.1"; \
+ chmod 644 "${DESTDIR}${MAN1}/$${man##*/}.1"; \
+ done
uninstall:
test "${DOCS}" != yes || ${MAKE} -C docs uninstall
for bin in ${BIN}; do \
rm -f ${DESTDIR}${BINDIR}/$${bin##*/}; done
for man in man/*.1; do rm -f ${DESTDIR}${MAN1}/$${man##*/}; done
+ for man in ${CONTRIB}; do rm -f ${DESTDIR}${MAN1}/$${man##*/}.1; done
clean:
test "${DOCS}" != yes || ${MAKE} -C docs clean