diff options
Diffstat (limited to 'share/mk/lint/mdoc')
-rw-r--r-- | share/mk/lint/mdoc/_.mk | 20 | ||||
-rw-r--r-- | share/mk/lint/mdoc/mandoc.mk | 20 |
2 files changed, 14 insertions, 26 deletions
diff --git a/share/mk/lint/mdoc/_.mk b/share/mk/lint/mdoc/_.mk index 0f51ee2..d151a80 100644 --- a/share/mk/lint/mdoc/_.mk +++ b/share/mk/lint/mdoc/_.mk @@ -6,26 +6,8 @@ ifndef MAKEFILE_LINT_MDOC_INCLUDED MAKEFILE_LINT_MDOC_INCLUDED := 1 -include $(MAKEFILEDIR)/build/_.mk -include $(MAKEFILEDIR)/configure/directory_variables.mk -include $(MAKEFILEDIR)/src.mk - - -linters_mdoc := mandoc - - -$(foreach l, $(linters_mdoc), \ - $(eval _LINT_mdoc_$(l) := \ - $(patsubst $(MANDIR)/%, $(_MANDIR)/%.lint-mdoc.$(l).touch, \ - $(NONSO_MDOC)))) - - -$(foreach l, $(linters_mdoc), \ - $(eval .PHONY: lint-mdoc-$(l))) -$(foreach l, $(linters_mdoc), \ - $(eval lint-mdoc-$(l): $(_LINT_mdoc_$(l));)) .PHONY: lint-mdoc -lint-mdoc: $(foreach l, $(linters_mdoc), lint-mdoc-$(l)); +lint-mdoc: lint-mdoc-mandoc; endif # include guard diff --git a/share/mk/lint/mdoc/mandoc.mk b/share/mk/lint/mdoc/mandoc.mk index 8b209b8..3a9e2cc 100644 --- a/share/mk/lint/mdoc/mandoc.mk +++ b/share/mk/lint/mdoc/mandoc.mk @@ -6,18 +6,20 @@ ifndef MAKEFILE_LINT_MDOC_MANDOC_INCLUDED MAKEFILE_LINT_MDOC_MANDOC_INCLUDED := 1 -include $(MAKEFILEDIR)/build/_.mk -include $(MAKEFILEDIR)/configure/build-depends/coreutils.mk -include $(MAKEFILEDIR)/configure/build-depends/grep.mk -include $(MAKEFILEDIR)/configure/build-depends/mandoc.mk -include $(MAKEFILEDIR)/lint/mdoc/_.mk -include $(MAKEFILEDIR)/src.mk +include $(MAKEFILEDIR)/build/man/mdoc.mk +include $(MAKEFILEDIR)/configure/build-depends/coreutils/touch.mk +include $(MAKEFILEDIR)/configure/build-depends/coreutils/true.mk +include $(MAKEFILEDIR)/configure/build-depends/grep/grep.mk +include $(MAKEFILEDIR)/configure/build-depends/mandoc/mandoc.mk + + +_LINT_mdoc_mandoc := $(patsubst %, %.lint-mdoc.mandoc.touch, $(_NONSO_MDOC)) mandoc_mdoc_ignore_grep := $(MAKEFILEDIR)/lint/mdoc/mandoc.ignore.grep -$(_LINT_mdoc_mandoc): $(_MANDIR)/%.lint-mdoc.mandoc.touch: $(MANDIR)/% $(mandoc_mdoc_ignore_grep) | $$(@D)/ +$(_LINT_mdoc_mandoc): %.lint-mdoc.mandoc.touch: % $(mandoc_mdoc_ignore_grep) $(MK) | $$(@D)/ $(info $(INFO_)MANDOC $@) ! ($(MANDOC) -mdoc $(MANDOCFLAGS) $< 2>&1 \ | $(GREP) -v -f '$(mandoc_mdoc_ignore_grep)' \ @@ -27,4 +29,8 @@ $(_LINT_mdoc_mandoc): $(_MANDIR)/%.lint-mdoc.mandoc.touch: $(MANDIR)/% $(mandoc_ $(TOUCH) $@ +.PHONY: lint-mdoc-mandoc +lint-mdoc-mandoc: $(_LINT_mdoc_mandoc); + + endif # include guard |