bsd.info.mk revision 21355
1# $Id: bsd.info.mk,v 1.20 1997/01/05 15:33:36 ache Exp $ 2 3MAKEINFO?= makeinfo 4MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression 5SRCDIR?= ${.CURDIR} 6 7.MAIN: all 8 9.SUFFIXES: .gz .info .texi .texinfo 10.texi.info: 11 ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET} 12.texinfo.info: 13 ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET} 14 15.PATH: ${.CURDIR} ${SRCDIR} 16 17.if !defined(NOINFOCOMPRESS) 18IFILES= ${INFO:S/$/.info.gz/g} 19all: ${IFILES} _SUBDIR 20.else 21IFILES= ${INFO:S/$/.info/g} 22all: ${IFILES} _SUBDIR 23.endif 24 25GZIPCMD?= gzip 26 27.for x in ${INFO:S/$/.info/g} 28${x:S/$/.gz/}: ${x} 29 ${GZIPCMD} -c ${.ALLSRC} > ${.TARGET} 30.endfor 31 32# The default is "info" and it can never be "bin" 33DISTRIBUTION?= info 34.if ${DISTRIBUTION} == "bin" 35DISTRIBUTION= info 36.endif 37 38.if !target(distribute) 39distribute: _SUBDIR 40 cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies 41.endif 42 43.if defined(SRCS) 44${INFO}.info: ${SRCS} 45 ${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${SRCS:S/^/${SRCDIR}\//g} -o ${INFO}.info 46.endif 47 48depend: _SUBDIR 49 @echo -n 50 51clean: _SUBDIR 52 rm -f ${INFO:S/$/.info*/g} Errs errs mklog ${CLEANFILES} 53 54install: _SUBDIR 55 ${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \ 56 ${IFILES} ${DESTDIR}${INFODIR} 57 58.if !target(maninstall) 59maninstall: _SUBDIR 60.endif 61 62.include <bsd.dep.mk> 63.include <bsd.obj.mk> 64