NetBSD/usr.sbin/ntp/html/Makefile

75 lines
2.8 KiB
Makefile

# $NetBSD: Makefile,v 1.6 2007/01/20 16:50:30 kardel Exp $
.include <bsd.own.mk>
.include "${.CURDIR}/../Makefile.inc"
.PATH: ${NTP_HTMLDIR}
.if ${MKDOC} != "no"
NTP_DOCFILES= accopt.html assoc.html audio.html authopt.html \
clockopt.html confopt.html \
build/scripts/footer.txt build/scripts/links10.txt \
build/scripts/links11.txt build/scripts/links12.txt \
build/scripts/links7.txt build/scripts/links8.txt \
build/scripts/links9.txt build/scripts/style.css \
build/patches.html build/build.html \
build/config.html build/hints.html \
build/porting.html build/quick.html \
copyright.html debug.html drivers/driver1.html \
drivers/driver10.html drivers/driver11.html drivers/driver12.html \
drivers/driver16.html drivers/driver18.html drivers/driver19.html \
drivers/driver2.html drivers/driver20.html drivers/driver22.html \
drivers/driver26.html drivers/driver27.html drivers/driver28.html \
drivers/driver29.html drivers/driver3.html drivers/driver30.html \
drivers/driver31.html drivers/driver32.html drivers/driver33.html \
drivers/driver34.html drivers/driver35.html drivers/driver36.html \
drivers/driver37.html drivers/driver38.html drivers/driver39.html \
drivers/driver4.html drivers/driver40.html drivers/driver42.html \
drivers/driver43.html drivers/driver44.html drivers/driver5.html \
drivers/driver6.html drivers/driver7.html drivers/driver8.html \
drivers/driver9.html drivers/icons/home.gif drivers/icons/mail2.gif \
drivers/oncore-shmem.html drivers/scripts/footer.txt \
drivers/scripts/style.css drivers/tf582_4.html extern.html \
gadget.html groups.html howto.html \
icons/home.gif icons/mail2.gif index.html \
kern.html keygen.html ldisc.html \
manyopt.html measure.html miscopt.html \
monopt.html msyslog.html mx4200data.html \
notes.html ntp_conf.html ntpd.html \
ntpdate.html ntpdc.html ntpdsim.html \
ntpdsim_new.html ntpq.html ntptime.html \
ntptrace.html parsedata.html parsenew.html \
pps.html \
prefer.html rdebug.html refclock.html \
release.html scripts/footer.txt scripts/links10.txt \
scripts/links11.txt scripts/links12.txt scripts/links7.txt \
scripts/links8.txt scripts/links9.txt scripts/style.css \
sntp.html tickadj.html
.for F in ${NTP_DOCFILES:O:u}
_FDIR:= ntp/${F:H} # subdir
_FDIR:= ${_FDIR:S,/.$,,} # remove trivial directory
_FNAME:= ${F:T} # name override
_F:= ${DESTDIR}${HTMLDOCDIR}/${_FDIR}/${_FNAME} # installed path
_FILE:= ${F}
.if ${MKUPDATE} == "no"
${_F}! ${_FILE} __fileinstall # install rule
.if !defined(BUILD) && !make(all) && !make(${_FILE})
${_F}! .MADE # no build at install
.endif
.else
${_F}: ${_FILE} __fileinstall # install rule
.if !defined(BUILD) && !make(all) && !make(${_FILE})
${_F}: .MADE # no build at install
.endif
.endif
filesinstall:: ${_F}
.PRECIOUS: ${_F} # keep if install fails
.endfor
.endif
.include <bsd.prog.mk>