Use SRCDIR to handle non-current directory docs

Use INFO* macros from bsd.own.mk
This commit is contained in:
Andrey A. Chernov 1997-01-05 15:33:36 +00:00
parent 453d2467e0
commit 8a1590b4dc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=21340

View file

@ -1,19 +1,18 @@
# $Id: bsd.info.mk,v 1.18 1996/06/24 04:23:58 jkh Exp $
# $Id: bsd.info.mk,v 1.19 1996/09/03 15:14:45 bde Exp $
BINMODE= 444
BINDIR?= /usr/share/info
MAKEINFO?= makeinfo
MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression
SRCDIR?= ${.CURDIR}
.MAIN: all
.SUFFIXES: .gz .info .texi .texinfo
.texi.info:
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}
.texinfo.info:
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}
.PATH: ${.CURDIR}
.PATH: ${.CURDIR} ${SRCDIR}
.if !defined(NOINFOCOMPRESS)
IFILES= ${INFO:S/$/.info.gz/g}
@ -43,7 +42,7 @@ distribute: _SUBDIR
.if defined(SRCS)
${INFO}.info: ${SRCS}
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${SRCS:S/^/${.CURDIR}\//g} -o ${INFO}.info
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${SRCS:S/^/${.SRCDIR}\//g} -o ${INFO}.info
.endif
depend: _SUBDIR
@ -53,8 +52,8 @@ clean: _SUBDIR
rm -f ${INFO:S/$/.info*/g} Errs errs mklog ${CLEANFILES}
install: _SUBDIR
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${IFILES} ${DESTDIR}${BINDIR}
${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
${IFILES} ${DESTDIR}${INFODIR}
.if !target(maninstall)
maninstall: _SUBDIR