xref: /freebsd/usr.sbin/ntp/doc/Makefile (revision b64c5a0ace59af62eff52bfe110a521dc73c937b)
1.include <src.opts.mk>
2
3PACKAGE=ntp
4SUBDIR=	drivers hints icons pic scripts
5
6FILESDIR=	${SHAREDIR}/doc/ntp
7
8.if ${MK_HTML} != "no"
9FILES=	access.html accopt.html assoc.html audio.html authentic.html \
10	authopt.html autokey.html bugs.html build.html clock.html \
11	clockopt.html cluster.html comdex.html config.html confopt.html \
12	copyright.html debug.html decode.html discipline.html discover.html \
13	extern.html filter.html hints.html history.html howto.html \
14	huffpuff.html index.html kern.html kernpps.html keygen.html leap.html \
15	miscopt.html monopt.html msyslog.html ntp-keygen.html ntp-wait.html \
16	ntp.conf.html ntp.keys.html ntp_conf.html ntpd.html ntpdate.html \
17	ntpdc.html ntpdsim.html ntpdsim_new.html ntpq.html ntpsnmpd.html \
18	ntptime.html ntptrace.html orphan.html parsedata.html \
19	parsenew.html poll.html pps.html prefer.html quick.html rate.html \
20	rdebug.html refclock.html release.html select.html sitemap.html \
21	sntp.html stats.html tickadj.html warp.html xleave.html
22.endif
23
24MAN=	ntp.conf.5 ntp.keys.5
25MAN+=	ntp-keygen.8 ntpd.8 ntpdate.8 ntpdc.8 ntpq.8 ntptime.8 sntp.8
26
27CLEANFILES=	ntp.conf.5 ntp.keys.5
28CLEANFILES+=	ntp-keygen.8 ntpd.8 ntpdc.8 ntpq.8 sntp.8
29
30SUFFIXES8=	.1ntp-keygenmdoc \
31		.1ntpdmdoc \
32		.1ntpdcmdoc \
33		.1ntpqmdoc \
34		.1sntpmdoc
35
36.SUFFIXES: .html .5 .8 .5mdoc ${SUFFIXES8}
37
38.5mdoc.5:
39	sed '/^\.Dt /s/5mdoc/5/' ${.ALLSRC} > ${.TARGET}
40
41.for s in ${SUFFIXES8}
42$s.8:
43	sed '/^\.Dt /s/1[a-z-][a-z-]*/8/' ${.ALLSRC} > ${.TARGET}
44.endfor
45
46ntp.conf.5: ntp.conf.5mdoc
47
48ntp.keys.5: ntp.keys.5mdoc
49
50ntp-keygen.8: ntp-keygen.1ntp-keygenmdoc
51
52ntpd.8:	ntpd.1ntpdmdoc
53
54ntpdc.8: ntpdc.1ntpdcmdoc
55
56ntpq.8: ntpq.1ntpqmdoc
57
58sntp.8: sntp.1sntpmdoc
59
60.PATH: ${SRCTOP}/contrib/ntp/html \
61	${SRCTOP}/contrib/ntp/util \
62	${SRCTOP}/contrib/ntp/ntpd \
63	${SRCTOP}/contrib/ntp/ntpdc \
64	${SRCTOP}/contrib/ntp/ntpq \
65	${SRCTOP}/contrib/ntp/ntpsnmpd \
66	${SRCTOP}/contrib/ntp/sntp \
67	${SRCTOP}/contrib/ntp/util
68
69.include <bsd.prog.mk>
70