html.mk

static html creation framework using make(1) and cpp(1)
Log | Files | Refs | README | LICENSE

commit bb8f275106983828307fead07bcda6b27ea2f508
parent 4794e255c933621be3a11b11a37a8348ea9c2b74
Author: Kyle Milz <krwmilz@gmail.com>
Date:   Tue, 20 Jul 2021 20:57:30 +0000

html.mk: add aux functions from site.mk

Diffstat:
Mhtml.mk | 19+++++++++++++++++++
Mmk/site.mk | 22++--------------------
2 files changed, 21 insertions(+), 20 deletions(-)

diff --git a/html.mk b/html.mk @@ -163,6 +163,25 @@ all: ${.OBJDIR}/${file}: ${.CURDIR}/${file} cp ${.CURDIR}/${file} $@ +# +# Helper targets for misc tasks. +# + +# +# Check files for trailing white space using `egrep`. +# -H: show matched filename +# -n: shows matched line in file +# '[[:space:]]+$': matches at least one space or tab until end of line +# +trailingspace: _SUBDIRUSE + ! egrep -Hn '[[:space:]]+$$' ${.CURDIR}/${SRCS} + +# +# Check spelling of all pages using `spell_ok' file for exceptions. +# +spell: _SUBDIRUSE + spell +${.CURDIR}/${TOP}/spell_ok ${.CURDIR}/${SRCS} + all: ${.OBJDIR}/${file} .endif diff --git a/mk/site.mk b/mk/site.mk @@ -2,23 +2,5 @@ # Site specific configuration. # # The directory to place out of tree builds. -DESTDIR ?= /tmp/html.mk - -# -# Helper targets for misc tasks. -# - -# -# Check files for trailing white space using `egrep`. -# -H: show matched filename -# -n: shows matched line in file -# '[[:space:]]+$': matches at least one space or tab until end of line -# -trailingspace: _SUBDIRUSE - ! egrep -Hn '[[:space:]]+$$' ${.CURDIR}/${SRCS} - -# -# Check spelling of all pages using `spell_ok' file for exceptions. -# -spell: _SUBDIRUSE - spell +${.CURDIR}/${TOP}/spell_ok ${.CURDIR}/${SRCS} +BSDSRCDIR ?= /nfs/src +BSDOBJDIR ?= /tmp