1997-01-11 02:39:37 +00:00
|
|
|
# $Id: bsd.info.mk,v 1.19 1996/09/03 15:14:45 bde Exp $
|
1995-01-12 08:20:25 +00:00
|
|
|
|
1997-01-11 02:39:37 +00:00
|
|
|
BINMODE= 444
|
|
|
|
BINDIR?= /usr/share/info
|
1995-01-02 12:12:00 +00:00
|
|
|
MAKEINFO?= makeinfo
|
1996-02-08 18:27:07 +00:00
|
|
|
MAKEINFOFLAGS+= --no-split # simplify some things, e.g., compression
|
1997-01-11 02:39:37 +00:00
|
|
|
INFODIRFILE?= dir
|
|
|
|
INFOTMPL?= /usr/share/info/dir-tmpl
|
|
|
|
INSTALLINFO?= install-info
|
|
|
|
INFOSECTION?= Miscellaneous
|
1995-01-02 12:12:00 +00:00
|
|
|
|
1995-01-07 16:39:38 +00:00
|
|
|
.MAIN: all
|
|
|
|
|
1995-07-26 13:51:46 +00:00
|
|
|
.SUFFIXES: .gz .info .texi .texinfo
|
1995-01-02 12:12:00 +00:00
|
|
|
.texi.info:
|
1997-01-11 02:39:37 +00:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
|
1995-01-04 21:29:32 +00:00
|
|
|
.texinfo.info:
|
1997-01-11 02:39:37 +00:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
|
1995-01-04 22:01:58 +00:00
|
|
|
|
1997-01-11 02:39:37 +00:00
|
|
|
.PATH: ${.CURDIR}
|
|
|
|
|
|
|
|
IFILENS= ${INFO:S/$/.info/g}
|
1995-01-02 12:12:00 +00:00
|
|
|
|
1995-07-26 13:51:46 +00:00
|
|
|
.if !defined(NOINFOCOMPRESS)
|
|
|
|
IFILES= ${INFO:S/$/.info.gz/g}
|
1996-06-24 04:26:21 +00:00
|
|
|
all: ${IFILES} _SUBDIR
|
1995-07-26 13:51:46 +00:00
|
|
|
.else
|
1997-01-11 02:39:37 +00:00
|
|
|
IFILES= ${IFILENS}
|
1996-06-24 04:26:21 +00:00
|
|
|
all: ${IFILES} _SUBDIR
|
1995-07-26 13:51:46 +00:00
|
|
|
.endif
|
|
|
|
|
1995-07-27 15:03:27 +00:00
|
|
|
GZIPCMD?= gzip
|
1995-07-26 13:51:46 +00:00
|
|
|
|
|
|
|
.for x in ${INFO:S/$/.info/g}
|
|
|
|
${x:S/$/.gz/}: ${x}
|
1995-07-27 15:03:27 +00:00
|
|
|
${GZIPCMD} -c ${.ALLSRC} > ${.TARGET}
|
1995-07-26 13:51:46 +00:00
|
|
|
.endfor
|
1995-01-04 22:01:58 +00:00
|
|
|
|
1997-01-11 02:39:37 +00:00
|
|
|
.for x in ${INFO}
|
|
|
|
INSTALLINFODIRS+= ${x:S/$/-install/}
|
|
|
|
${x:S/$/-install/}:
|
|
|
|
${INSTALLINFO} --defsection=${INFOSECTION} \
|
|
|
|
--defentry=${INFOENTRY_${x}} \
|
|
|
|
${x}.info ${DESTDIR}/${BINDIR}/${INFODIRFILE}
|
|
|
|
.endfor
|
|
|
|
|
|
|
|
.PHONY: ${INSTALLINFODIRS}
|
|
|
|
|
1995-02-11 05:28:31 +00:00
|
|
|
# The default is "info" and it can never be "bin"
|
1995-01-14 07:51:10 +00:00
|
|
|
DISTRIBUTION?= info
|
1995-02-11 05:28:31 +00:00
|
|
|
.if ${DISTRIBUTION} == "bin"
|
|
|
|
DISTRIBUTION= info
|
|
|
|
.endif
|
|
|
|
|
1995-01-12 08:20:25 +00:00
|
|
|
.if !target(distribute)
|
1996-06-24 04:26:21 +00:00
|
|
|
distribute: _SUBDIR
|
1997-01-11 02:39:37 +00:00
|
|
|
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${DISTDIR}/${DISTRIBUTION} SHARED=copies
|
1995-01-12 08:20:25 +00:00
|
|
|
.endif
|
|
|
|
|
1995-01-04 22:01:58 +00:00
|
|
|
.if defined(SRCS)
|
|
|
|
${INFO}.info: ${SRCS}
|
1997-01-11 02:39:37 +00:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${SRCS:S/^/${.CURDIR}\//g} -o ${INFO}.info
|
1995-01-04 21:29:32 +00:00
|
|
|
.endif
|
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
depend: _SUBDIR
|
1995-01-23 20:53:38 +00:00
|
|
|
@echo -n
|
1995-01-04 21:29:32 +00:00
|
|
|
|
1996-06-24 04:26:21 +00:00
|
|
|
clean: _SUBDIR
|
1996-03-07 23:39:46 +00:00
|
|
|
rm -f ${INFO:S/$/.info*/g} Errs errs mklog ${CLEANFILES}
|
1995-01-04 21:29:32 +00:00
|
|
|
|
1997-01-11 02:39:37 +00:00
|
|
|
install: ${INSTALLINFODIRS} _SUBDIR
|
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
|
|
|
${IFILES} ${DESTDIR}${BINDIR}
|
1995-01-02 12:12:00 +00:00
|
|
|
|
1995-03-10 08:54:42 +00:00
|
|
|
.if !target(maninstall)
|
1996-06-24 04:26:21 +00:00
|
|
|
maninstall: _SUBDIR
|
1995-03-10 08:54:42 +00:00
|
|
|
.endif
|
1996-06-24 04:26:21 +00:00
|
|
|
|
|
|
|
.include <bsd.dep.mk>
|
|
|
|
.include <bsd.obj.mk>
|