No empty .Rs/.Re
[netbsd-mini2440.git] / usr.sbin / ntp / html / Makefile
blobd63aea884d2b4987f8a93cf3358a38fdf987a20b
1 # $NetBSD$
3 .include <bsd.own.mk>
4 .include "${.CURDIR}/../Makefile.inc"
6 .PATH: ${NTP_HTMLDIR}
8 .if ${MKDOC} != "no"
9 NTP_DOCFILES= accopt.html assoc.html audio.html authopt.html \
10 clockopt.html confopt.html \
11 build/scripts/footer.txt build/scripts/links10.txt \
12 build/scripts/links11.txt build/scripts/links12.txt \
13 build/scripts/links7.txt build/scripts/links8.txt \
14 build/scripts/links9.txt build/scripts/style.css \
15 build/patches.html build/build.html \
16 build/config.html build/hints.html \
17 build/porting.html build/quick.html \
18 copyright.html debug.html drivers/driver1.html \
19 drivers/driver10.html drivers/driver11.html drivers/driver12.html \
20 drivers/driver16.html drivers/driver18.html drivers/driver19.html \
21 drivers/driver2.html drivers/driver20.html drivers/driver22.html \
22 drivers/driver26.html drivers/driver27.html drivers/driver28.html \
23 drivers/driver29.html drivers/driver3.html drivers/driver30.html \
24 drivers/driver31.html drivers/driver32.html drivers/driver33.html \
25 drivers/driver34.html drivers/driver35.html drivers/driver36.html \
26 drivers/driver37.html drivers/driver38.html drivers/driver39.html \
27 drivers/driver4.html drivers/driver40.html drivers/driver42.html \
28 drivers/driver43.html drivers/driver44.html drivers/driver5.html \
29 drivers/driver6.html drivers/driver7.html drivers/driver8.html \
30 drivers/driver9.html drivers/icons/home.gif drivers/icons/mail2.gif \
31 drivers/oncore-shmem.html drivers/scripts/footer.txt \
32 drivers/scripts/style.css drivers/tf582_4.html extern.html \
33 gadget.html groups.html howto.html \
34 icons/home.gif icons/mail2.gif index.html \
35 kern.html keygen.html ldisc.html \
36 manyopt.html measure.html miscopt.html \
37 monopt.html msyslog.html mx4200data.html \
38 notes.html ntp_conf.html ntpd.html \
39 ntpdate.html ntpdc.html ntpdsim.html \
40 ntpdsim_new.html ntpq.html ntptime.html \
41 ntptrace.html parsedata.html parsenew.html \
42 pps.html \
43 prefer.html rdebug.html refclock.html \
44 release.html scripts/footer.txt scripts/links10.txt \
45 scripts/links11.txt scripts/links12.txt scripts/links7.txt \
46 scripts/links8.txt scripts/links9.txt scripts/style.css \
47 sntp.html tickadj.html
49 .for F in ${NTP_DOCFILES:O:u}
50 _FDIR:= ntp/${F:H} # subdir
51 _FDIR:= ${_FDIR:S,/.$,,} # remove trivial directory
52 _FNAME:= ${F:T} # name override
53 _F:= ${DESTDIR}${HTMLDOCDIR}/${_FDIR}/${_FNAME} # installed path
54 _FILE:= ${F}
56 .if ${MKUPDATE} == "no"
57 ${_F}! ${_FILE} __fileinstall # install rule
58 .if !defined(BUILD) && !make(all) && !make(${_FILE})
59 ${_F}! .MADE # no build at install
60 .endif
61 .else
62 ${_F}: ${_FILE} __fileinstall # install rule
63 .if !defined(BUILD) && !make(all) && !make(${_FILE})
64 ${_F}: .MADE # no build at install
65 .endif
66 .endif
68 filesinstall:: ${_F}
69 .PRECIOUS: ${_F} # keep if install fails
70 .endfor
72 .endif
74 .include <bsd.prog.mk>