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