summaryrefslogtreecommitdiff
path: root/usr.sbin/ntp/doc/Makefile
blob: b122df4f095b45c23ba9f64da31d00bea8aa30e7 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
.include <src.opts.mk>

PACKAGE=ntp
SUBDIR=	drivers hints icons pic scripts

FILESDIR=	${SHAREDIR}/doc/ntp

.if ${MK_HTML} != "no"
FILES=	access.html accopt.html assoc.html audio.html authentic.html \
	authopt.html autokey.html bugs.html build.html clock.html \
	clockopt.html cluster.html comdex.html config.html confopt.html \
	copyright.html debug.html decode.html discipline.html discover.html \
	extern.html filter.html hints.html history.html howto.html \
	huffpuff.html index.html kern.html kernpps.html keygen.html leap.html \
	miscopt.html monopt.html msyslog.html ntp-keygen.html ntp-wait.html \
	ntp.conf.html ntp.keys.html ntp_conf.html ntpd.html ntpdate.html \
	ntpdc.html ntpdsim.html ntpdsim_new.html ntpq.html ntpsnmpd.html \
	ntptime.html ntptrace.html orphan.html parsedata.html \
	parsenew.html poll.html pps.html prefer.html quick.html rate.html \
	rdebug.html refclock.html release.html select.html sitemap.html \
	sntp.html stats.html tickadj.html warp.html xleave.html
.endif

MAN=	ntp.conf.5 ntp.keys.5
MAN+=	ntp-keygen.8 ntpd.8 ntpdate.8 ntpdc.8 ntpq.8 ntptime.8 sntp.8

CLEANFILES=	ntp.conf.5 ntp.keys.5
CLEANFILES+=	ntp-keygen.8 ntpd.8 ntpdc.8 ntpq.8 sntp.8

SUFFIXES8=	.1ntp-keygenmdoc \
		.1ntpdmdoc \
		.1ntpdcmdoc \
		.1ntpqmdoc \
		.1sntpmdoc

.SUFFIXES: .html .5 .8 .5mdoc ${SUFFIXES8}

.5mdoc.5:
	sed '/^\.Dt /s/5mdoc/5/' ${.ALLSRC} > ${.TARGET}

.for s in ${SUFFIXES8}
$s.8:
	sed '/^\.Dt /s/1[a-z-][a-z-]*/8/' ${.ALLSRC} > ${.TARGET}
.endfor

ntp.conf.5: ntp.conf.5mdoc

ntp.keys.5: ntp.keys.5mdoc

ntp-keygen.8: ntp-keygen.1ntp-keygenmdoc

ntpd.8:	ntpd.1ntpdmdoc

ntpdc.8: ntpdc.1ntpdcmdoc

ntpq.8: ntpq.1ntpqmdoc

sntp.8: sntp.1sntpmdoc

.PATH: ${SRCTOP}/contrib/ntp/html \
	${SRCTOP}/contrib/ntp/util \
	${SRCTOP}/contrib/ntp/ntpd \
	${SRCTOP}/contrib/ntp/ntpdc \
	${SRCTOP}/contrib/ntp/ntpq \
	${SRCTOP}/contrib/ntp/ntpsnmpd \
	${SRCTOP}/contrib/ntp/sntp \
	${SRCTOP}/contrib/ntp/util

.include <bsd.prog.mk>