1995-07-27 15:03:27 +00:00
|
|
|
# $Id: bsd.info.mk,v 1.14 1995/07/26 13:51:46 wollman Exp $
|
1995-01-12 08:20:25 +00:00
|
|
|
|
1995-01-04 22:43:52 +00:00
|
|
|
BINMODE= 444
|
1995-01-02 12:12:00 +00:00
|
|
|
BINDIR?= /usr/share/info
|
|
|
|
MAKEINFO?= makeinfo
|
1995-07-26 13:51:46 +00:00
|
|
|
MAKEINFOFLAGS?= --no-split # simplify some things, e.g., compression
|
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:
|
1995-01-04 22:01:58 +00:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
|
1995-01-04 21:29:32 +00:00
|
|
|
.texinfo.info:
|
1995-01-04 22:01:58 +00:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}
|
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}
|
|
|
|
all: ${IFILES}
|
|
|
|
.else
|
|
|
|
IFILES= ${INFO:S/$/.info/g}
|
|
|
|
all: ${IFILES}
|
|
|
|
.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
|
|
|
|
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)
|
|
|
|
distribute:
|
1995-02-25 20:51:14 +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}
|
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${SRCS:S/^/${.CURDIR}\//g} -o ${INFO}.info
|
1995-01-04 21:29:32 +00:00
|
|
|
.endif
|
|
|
|
|
1995-01-23 20:53:38 +00:00
|
|
|
depend:
|
|
|
|
@echo -n
|
1995-01-04 21:29:32 +00:00
|
|
|
|
|
|
|
.if !target(obj)
|
|
|
|
.if defined(NOOBJ)
|
|
|
|
obj:
|
|
|
|
.else
|
|
|
|
obj:
|
1995-02-02 04:53:30 +00:00
|
|
|
@cd ${.CURDIR}; rm -f obj; \
|
|
|
|
here=`pwd`; dest=/usr/obj`echo $$here | sed 's,^/usr/src,,'`; \
|
|
|
|
${ECHO} "$$here -> $$dest"; ln -s $$dest obj; \
|
|
|
|
if test -d /usr/obj -a ! -d $$dest; then \
|
|
|
|
mkdir -p $$dest; \
|
1995-01-04 21:29:32 +00:00
|
|
|
else \
|
1995-02-02 04:53:30 +00:00
|
|
|
true; \
|
1995-01-04 21:29:32 +00:00
|
|
|
fi;
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f ${INFO:S/$/.info*/g} [eE]rrs mklog ${CLEANFILES}
|
|
|
|
|
|
|
|
cleandir: clean
|
|
|
|
cd ${.CURDIR}; rm -rf obj
|
1995-01-02 12:12:00 +00:00
|
|
|
|
1995-01-04 21:29:32 +00:00
|
|
|
install:
|
|
|
|
@if [ ! -d "${DESTDIR}${BINDIR}" ]; then \
|
|
|
|
/bin/rm -f ${DESTDIR}${BINDIR} ; \
|
|
|
|
mkdir -p ${DESTDIR}${BINDIR} ; \
|
|
|
|
chown root.wheel ${DESTDIR}${BINDIR} ; \
|
|
|
|
chmod 755 ${DESTDIR}${BINDIR} ; \
|
|
|
|
else \
|
|
|
|
true ; \
|
|
|
|
fi
|
|
|
|
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
|
1995-07-26 13:51:46 +00:00
|
|
|
${IFILES} ${DESTDIR}${BINDIR}
|
1995-01-02 12:12:00 +00:00
|
|
|
|
1995-03-10 08:54:42 +00:00
|
|
|
.if !target(maninstall)
|
|
|
|
maninstall:
|
|
|
|
|
|
|
|
.endif
|