From 0c77de559e319ab077cd3852dea3b7a84fe8770b Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 11 May 2015 10:22:05 -0600 Subject: [PATCH] Add lint target to run "mandoc -Tlint" over the manuals. --- doc/Makefile.in | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/Makefile.in b/doc/Makefile.in index 069249465..5d53a31d5 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -1,5 +1,5 @@ # -# Copyright (c) 2010-2014 Todd C. Miller +# Copyright (c) 2010-2015 Todd C. Miller # # Permission to use, copy, modify, and distribute this software for any # purpose with or without fee is hereby granted, provided that the above @@ -92,6 +92,17 @@ PACKAGE_TARNAME = @PACKAGE_TARNAME@ all: $(DEVDOCS) $(DOCS) +lint: all + @if [ "$(mantype)" != "mdoc" ]; then \ + echo "make lint only supported for mdoc manuals" 1>&2; \ + exit 1; \ + else \ + for m in $(DOCS); do \ + echo $(MANDOC) -Tlint $$m; \ + $(MANDOC) -Tlint $$m; \ + done; \ + fi + Makefile: $(srcdir)/Makefile.in (cd $(top_builddir) && ./config.status --file doc/Makefile) -- 2.40.0