summaryrefslogtreecommitdiff
path: root/kerberosV/doc/Makefile
blob: 3010c4c3591cc50a18e2c44778eb4f621e3c09de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# $OpenBSD: Makefile,v 1.13 2013/07/09 14:33:43 ajacoutot Exp $

KINFOSRC =	${.CURDIR}/../src/doc
KINFODIR =	${DESTDIR}${SHAREDIR}/info

MAKEINFO =	/usr/bin/makeinfo
INSTALL-INFO =	/usr/bin/install-info

INFO =	heimdal.info

SRCS =	heimdal.texi intro.texi whatis.texi install.texi setup.texi apps.texi \
	misc.texi kerberos4.texi win2k.texi programming.texi migration.texi \
	ack.texi copyright.texi vars.texi

all: ${INFO}

heimdal.info: ${SRCS}
.for t in ${SRCS}
	sed -f ${.CURDIR}/../varsub ${KINFOSRC}/${t} > ${.OBJDIR}/${t}.tmp && \
		mv ${.OBJDIR}/${t}.tmp ${.OBJDIR}/${t}
.endfor
	${MAKEINFO} --no-split -I${KINFOSRC} -o ${.TARGET} ${.OBJDIR}/heimdal.texi

install: ${INFO}
	${INSTALL} ${INSTALL_COPY} -m ${DOCMODE} -o ${DOCOWN} -g ${DOCGRP} ${.OBJDIR}/${INFO} ${KINFODIR}
	$(INSTALL-INFO) ${.OBJDIR}/${INFO} ${KINFODIR}/dir

clean:
	rm -f ${INFO} ${SRCS}

cleandir: clean

.PATH:	${KINFOSRC}

.include <bsd.obj.mk>
.include <bsd.subdir.mk>