xref: /netbsd-src/external/bsd/ntp/html/Makefile (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1#	$NetBSD: Makefile,v 1.3 2014/07/05 19:22:42 dholland Exp $
2
3.include <bsd.own.mk>
4.include "${.CURDIR}/../Makefile.inc"
5
6.PATH: ${IDIST}/html
7
8.if ${MKDOC} != "no"
9NTP_DOCFILES= \
10		accopt.html \
11		assoc.html \
12		audio.html \
13		authopt.html \
14		bugs.html \
15		build.html \
16		clockopt.html \
17		comdex.html \
18		config.html \
19		confopt.html \
20		copyright.html \
21		debug.html \
22		decode.html \
23		drivers/driver1.html \
24		drivers/driver3.html \
25		drivers/driver4.html \
26		drivers/driver5.html \
27		drivers/driver6.html \
28		drivers/driver7.html \
29		drivers/driver8.html \
30		drivers/driver9.html \
31		drivers/driver10.html \
32		drivers/driver11.html \
33		drivers/driver12.html \
34		drivers/driver16.html \
35		drivers/driver18.html \
36		drivers/driver19.html \
37		drivers/driver20.html \
38		drivers/driver22.html \
39		drivers/driver26.html \
40		drivers/driver27.html \
41		drivers/driver28.html \
42		drivers/driver29.html \
43		drivers/driver30.html \
44		drivers/driver31.html \
45		drivers/driver32.html \
46		drivers/driver33.html \
47		drivers/driver34.html \
48		drivers/driver35.html \
49		drivers/driver36.html \
50		drivers/driver37.html \
51		drivers/driver38.html \
52		drivers/driver39.html \
53		drivers/driver40.html \
54		drivers/driver42.html \
55		drivers/driver43.html \
56		drivers/driver44.html \
57		drivers/mx4200data.html \
58		drivers/oncore-shmem.html \
59		drivers/scripts/footer.txt \
60		drivers/scripts/style.css \
61		drivers/tf582_4.html \
62		extern.html \
63		hints.html \
64		howto.html \
65		index.html \
66		kern.html \
67		kernpps.html \
68		keygen.html \
69		miscopt.html \
70		monopt.html \
71		msyslog.html \
72		ntp_conf.html \
73		ntpd.html \
74		ntpdate.html \
75		ntpdc.html \
76		ntpdsim.html \
77		ntpdsim_new.html \
78		ntpq.html \
79		ntptime.html \
80		ntptrace.html \
81		parsedata.html \
82		parsenew.html \
83		pps.html \
84		prefer.html \
85		quick.html \
86		rate.html \
87		rdebug.html \
88		refclock.html \
89		release.html \
90		scripts/accopt.txt \
91		scripts/audio.txt \
92		scripts/authopt.txt \
93		scripts/clockopt.txt \
94		scripts/command.txt \
95		scripts/config.txt \
96		scripts/confopt.txt \
97		scripts/external.txt \
98		scripts/footer.txt \
99		scripts/install.txt \
100		scripts/manual.txt \
101		scripts/misc.txt \
102		scripts/miscopt.txt \
103		scripts/monopt.txt \
104		scripts/refclock.txt \
105		scripts/style.css \
106		sitemap.html \
107		sntp.html \
108		tickadj.html \
109		xleave.html
110
111.for F in ${NTP_DOCFILES:O:u}
112_FDIR:=		ntp/${F:H}				# subdir
113_FDIR:=		${_FDIR:S,/.$,,}			# remove trivial directory
114_FNAME:=	${F:T}					# name override
115_F:=		${DESTDIR}${NTP_HTMLDIR}/${_FDIR}/${_FNAME}		# installed path
116_FILE:=		${F}
117
118.if ${MKUPDATE} == "no"
119${_F}!		${_FILE} __fileinstall			# install rule
120.if !defined(BUILD) && !make(all) && !make(${_FILE})
121${_F}!		.MADE					# no build at install
122.endif
123.else
124${_F}:		${_FILE} __fileinstall			# install rule
125.if !defined(BUILD) && !make(all) && !make(${_FILE})
126${_F}:		.MADE					# no build at install
127.endif
128.endif
129
130filesinstall::	${_F}
131.PRECIOUS: 	${_F}					# keep if install fails
132.endfor
133
134.endif
135
136.include <bsd.prog.mk>
137