diff options
author | merakor <cem@ckyln.com> | 2021-03-12 14:03:47 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2021-03-12 14:03:47 +0000 |
commit | 257ba31f390a04fd69aaea452243bd21fc448d2f (patch) | |
tree | 0d866cd0f950ed729b9d692c2ce3429c4f1e81ff /Makefile | |
parent | fc8de2a8f48485ad8b035a4e76098c4a7dbadb05 (diff) | |
download | cpt-257ba31f390a04fd69aaea452243bd21fc448d2f.tar.gz |
Makefile: install 'contrib' manual pages.
FossilOrigin-Name: b853ba32111746b5fdb959a8c626aeb8d506ba3d060e3188aac96d1380dc0686
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |