--- catman/Makefile.orig 1997-12-07 22:11:06.000000000 +0900 +++ catman/Makefile 2014-08-26 12:08:09.000000000 +0900 @@ -37,25 +37,21 @@ ${.CURDIR}/jcatman.man.eng | \ ${compress} > ${.TARGET} -install: ${TARG} maninstall after_maninstall - ${INSTALL} -c -o bin -g bin -m 555 ${TARG} ${DESTDIR}${BINDIR} +install: ${TARG} man_install after_maninstall + ${INSTALL} -m 555 ${TARG} ${DESTDIR}${BINDIR} + +.if !defined(NO_MAN) +man_install: ${MAN1} + ${INSTALL} -m 444 ${MAN1} ${DESTDIR}${MANDIR}1 -.if !defined(NOMAN) after_maninstall: ${EMAN1} - ${INSTALL} -c -o bin -g bin -m 444 ${EMAN1} \ + ${INSTALL} -m 444 ${EMAN1} \ ${DESTDIR}${EMANDIR}1/jcatman.1.gz .else +man_install: after_maninstall: .endif .include "../Makefile.inc" -.if make(maninstall) || make(install) -.if !defined(NOMAN) -.include -.elif !target(maninstall) -maninstall: -.endif -.endif - .include