1997-01-06 03:30:13 +01:00
|
|
|
# $Id: bsd.info.mk,v 1.20 1997/01/05 15:33:36 ache Exp $
|
1995-01-12 09:20:25 +01:00
|
|
|
|
1995-01-02 13:12:00 +01:00
|
|
|
MAKEINFO?= makeinfo
|
1996-02-08 19:27:07 +01:00
|
|
|
MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression
|
1997-01-05 16:33:36 +01:00
|
|
|
SRCDIR?= ${.CURDIR}
|
1995-01-02 13:12:00 +01:00
|
|
|
|
1995-01-07 17:39:38 +01:00
|
|
|
.MAIN: all
|
|
|
|
|
1995-07-26 15:51:46 +02:00
|
|
|
.SUFFIXES: .gz .info .texi .texinfo
|
1995-01-02 13:12:00 +01:00
|
|
|
.texi.info:
|
1997-01-05 16:33:36 +01:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}
|
1995-01-04 22:29:32 +01:00
|
|
|
.texinfo.info:
|
1997-01-05 16:33:36 +01:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${.IMPSRC} -o ${.TARGET}
|
1995-01-04 23:01:58 +01:00
|
|
|
|
1997-01-05 16:33:36 +01:00
|
|
|
.PATH: ${.CURDIR} ${SRCDIR}
|
1995-01-02 13:12:00 +01:00
|
|
|
|
1995-07-26 15:51:46 +02:00
|
|
|
.if !defined(NOINFOCOMPRESS)
|
|
|
|
IFILES= ${INFO:S/$/.info.gz/g}
|
1996-06-24 06:26:21 +02:00
|
|
|
all: ${IFILES} _SUBDIR
|
1995-07-26 15:51:46 +02:00
|
|
|
.else
|
|
|
|
IFILES= ${INFO:S/$/.info/g}
|
1996-06-24 06:26:21 +02:00
|
|
|
all: ${IFILES} _SUBDIR
|
1995-07-26 15:51:46 +02:00
|
|
|
.endif
|
|
|
|
|
1995-07-27 17:03:27 +02:00
|
|
|
GZIPCMD?= gzip
|
1995-07-26 15:51:46 +02:00
|
|
|
|
|
|
|
.for x in ${INFO:S/$/.info/g}
|
|
|
|
${x:S/$/.gz/}: ${x}
|
1995-07-27 17:03:27 +02:00
|
|
|
${GZIPCMD} -c ${.ALLSRC} > ${.TARGET}
|
1995-07-26 15:51:46 +02:00
|
|
|
.endfor
|
1995-01-04 23:01:58 +01:00
|
|
|
|
1995-02-11 06:28:31 +01:00
|
|
|
# The default is "info" and it can never be "bin"
|
1995-01-14 08:51:10 +01:00
|
|
|
DISTRIBUTION?= info
|
1995-02-11 06:28:31 +01:00
|
|
|
.if ${DISTRIBUTION} == "bin"
|
|
|
|
DISTRIBUTION= info
|
|
|
|
.endif
|
|
|
|
|
1995-01-12 09:20:25 +01:00
|
|
|
.if !target(distribute)
|
1996-06-24 06:26:21 +02:00
|
|
|
distribute: _SUBDIR
|
1995-02-25 21:51:14 +01:00
|
|
|
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
|
1995-01-12 09:20:25 +01:00
|
|
|
.endif
|
|
|
|
|
1995-01-04 23:01:58 +01:00
|
|
|
.if defined(SRCS)
|
|
|
|
${INFO}.info: ${SRCS}
|
1997-01-06 03:30:13 +01:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} -I ${SRCDIR} ${SRCS:S/^/${SRCDIR}\//g} -o ${INFO}.info
|
1995-01-04 22:29:32 +01:00
|
|
|
.endif
|
|
|
|
|
1996-06-24 06:26:21 +02:00
|
|
|
depend: _SUBDIR
|
1995-01-23 21:53:38 +01:00
|
|
|
@echo -n
|
1995-01-04 22:29:32 +01:00
|
|
|
|
1996-06-24 06:26:21 +02:00
|
|
|
clean: _SUBDIR
|
1996-03-08 00:39:46 +01:00
|
|
|
rm -f ${INFO:S/$/.info*/g} Errs errs mklog ${CLEANFILES}
|
1995-01-04 22:29:32 +01:00
|
|
|
|
1996-06-24 06:26:21 +02:00
|
|
|
install: _SUBDIR
|
1997-01-05 16:33:36 +01:00
|
|
|
${INSTALL} ${COPY} -o ${INFOOWN} -g ${INFOGRP} -m ${INFOMODE} \
|
|
|
|
${IFILES} ${DESTDIR}${INFODIR}
|
1995-01-02 13:12:00 +01:00
|
|
|
|
1995-03-10 09:54:42 +01:00
|
|
|
.if !target(maninstall)
|
1996-06-24 06:26:21 +02:00
|
|
|
maninstall: _SUBDIR
|
1995-03-10 09:54:42 +01:00
|
|
|
.endif
|
1996-06-24 06:26:21 +02:00
|
|
|
|
|
|
|
.include <bsd.dep.mk>
|
|
|
|
.include <bsd.obj.mk>
|