1995-02-11 06:28:31 +01:00
|
|
|
# $Id: bsd.info.mk,v 1.10 1995/02/02 04:53:30 jkh Exp $
|
1995-01-12 09:20:25 +01:00
|
|
|
|
1995-01-04 23:43:52 +01:00
|
|
|
BINMODE= 444
|
1995-01-02 13:12:00 +01:00
|
|
|
BINDIR?= /usr/share/info
|
|
|
|
MAKEINFO?= makeinfo
|
|
|
|
MAKEINFOFLAGS?= # --no-split would simplify some things, e.g., compression
|
|
|
|
|
1995-01-07 17:39:38 +01:00
|
|
|
.MAIN: all
|
|
|
|
|
1995-01-04 22:29:32 +01:00
|
|
|
.SUFFIXES: .info .texi .texinfo
|
1995-01-02 13:12:00 +01:00
|
|
|
.texi.info:
|
1995-01-04 23:01:58 +01:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
|
1995-01-04 22:29:32 +01:00
|
|
|
.texinfo.info:
|
1995-01-04 23:01:58 +01:00
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${.IMPSRC} -o ${.TARGET}
|
|
|
|
|
|
|
|
.PATH: ${.CURDIR}
|
1995-01-02 13:12:00 +01:00
|
|
|
|
|
|
|
all: ${INFO:S/$/.info/g}
|
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)
|
|
|
|
distribute:
|
1995-01-12 09:21:31 +01:00
|
|
|
cd ${.CURDIR} ; $(MAKE) install DESTDIR=${RELEASEDIR}/${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}
|
|
|
|
${MAKEINFO} ${MAKEINFOFLAGS} -I ${.CURDIR} ${SRCS:S/^/${.CURDIR}\//g} -o ${INFO}.info
|
1995-01-04 22:29:32 +01:00
|
|
|
.endif
|
|
|
|
|
1995-01-23 21:53:38 +01:00
|
|
|
depend:
|
|
|
|
@echo -n
|
1995-01-04 22:29:32 +01:00
|
|
|
|
|
|
|
.if !target(obj)
|
|
|
|
.if defined(NOOBJ)
|
|
|
|
obj:
|
|
|
|
.else
|
|
|
|
obj:
|
1995-02-02 05:53:30 +01: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 22:29:32 +01:00
|
|
|
else \
|
1995-02-02 05:53:30 +01:00
|
|
|
true; \
|
1995-01-04 22:29:32 +01: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 13:12:00 +01:00
|
|
|
|
1995-01-04 22:29:32 +01: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} \
|
|
|
|
${INFO:S/$/.info*/g} ${DESTDIR}${BINDIR}
|
1995-01-02 13:12:00 +01:00
|
|
|
|