From 2ff35f6e4d93ce795a3388e556f15b8dcfcbb48b Mon Sep 17 00:00:00 2001 From: Alex Karle Date: Sun, 4 Apr 2021 22:33:32 -0400 Subject: [PATCH] make: Add lint step to build stage To prevent noise, I ratcheted it down to -Wwarning (some of the style points I don't need for my purpose, such as replacing OpenBSD with .Os -- I want to talk about OpenBSD regardless where the page was rendered!). This involves fixing the one warning on template.7 (incorrect date) --- Makefile | 1 + template.7 | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ec04aba..2e5b113 100644 --- a/Makefile +++ b/Makefile @@ -24,6 +24,7 @@ atom.xml: blog.7 genatom.sh .SUFFIXES: .7 .html .7.html: @echo "mandoc $<" + $(HIDE)mandoc -Tlint -Wwarning $< $(HIDE)mandoc -Thtml -O 'man=%N.html;https://man.openbsd.org/%N.%S,style=style.css' $< \ | sed 's##&# ' \ | sed 's#^