.POSIX:

BORE_MANDOCFLAGS = -O 'style=style.css,man=%N.%S.html;https://man.openbsd.org/%N.%S'

all: bore.1.html bore.1.txt

bore.1.html: bore.1
	mandoc -T html $(BORE_MANDOCFLAGS) $(MANDOCFLAGS) $? > $@

bore.1.txt: bore.1
	mandoc -T utf8 $(BORE_MANDOCFLAGS) $(MANDOCFLAGS) $? > $@

lint: bore.1
	mandoc -T lint $(BORE_MANDOCFLAGS) $(MANDOCFLAGS) $?

.PHONY: all lint
