ext := .cat.set
xfail := $(MAKEFILEDIR)/build/catman/troff.xfail
+regexf := $(MAKEFILEDIR)/build/catman/troff.ignore.grep
tgts := $(patsubst %, %$(ext), $(_NONSO))
ifeq ($(SKIP_XFAIL),yes)
endif
-troff_catman_ignore_grep := $(MAKEFILEDIR)/build/catman/troff.ignore.grep
-
-
_CATMAN_set := $(tgts)
-$(_CATMAN_set): %$(ext): %.cat.troff $(troff_catman_ignore_grep) $(MK) | $$(@D)/
+$(_CATMAN_set): %$(ext): %.cat.troff $(regexf) $(MK) | $$(@D)/
$(info $(INFO_)TROFF $@)
! ($(TROFF) -mandoc $(TROFFFLAGS_) $(NROFFFLAGS_) <$< 2>&1 >$@ \
- | $(GREP) -v -f '$(troff_catman_ignore_grep)' \
+ | $(GREP) -v -f '$(filter %.grep, $^)' \
|| $(TRUE); \
) \
| $(GREP) ^ >&2
undefine ext
undefine xfail
+undefine regexf
undefine tgts
ext := .lint-man.mandoc.touch
xfail := $(MAKEFILEDIR)/lint/man/mandoc.xfail
+regexf := $(MAKEFILEDIR)/lint/man/mandoc.ignore.grep
tgts := $(patsubst %, %$(ext), $(_NONSO))
ifeq ($(SKIP_XFAIL),yes)
endif
-mandoc_man_ignore_grep := $(MAKEFILEDIR)/lint/man/mandoc.ignore.grep
-
-
-$(tgts): %$(ext): % $(mandoc_man_ignore_grep) $(MK) | $$(@D)/
+$(tgts): %$(ext): % $(regexf) $(MK) | $$(@D)/
$(info $(INFO_)MANDOC $@)
! ($(MANDOC) $(MANDOCFLAGS_) $< 2>&1 \
- | $(GREP) -v -f '$(mandoc_man_ignore_grep)' \
+ | $(GREP) -v -f '$(filter %.grep, $^)' \
|| $(TRUE); \
) \
| $(GREP) ^ >&2
undefine ext
undefine xfail
+undefine regexf
undefine tgts
ext := .lint-man.quote.touch
xfail := $(MAKEFILEDIR)/lint/man/quote.xfail
+regexf := $(MAKEFILEDIR)/lint/man/quote.Pgrep
tgts := $(patsubst %, %$(ext), $(_NONSO))
ifeq ($(SKIP_XFAIL),yes)
endif
-quote_Pgrep := $(MAKEFILEDIR)/lint/man/quote.Pgrep
-
-
-$(tgts): %$(ext): % $(quote_Pgrep) $(MK) | $$(@D)/
+$(tgts): %$(ext): % $(regexf) $(MK) | $$(@D)/
$(info $(INFO_)GREP $@)
$(CAT) <$< \
- | if $(GREP) -Pf $(quote_Pgrep) >/dev/null; then \
+ | if $(GREP) -Pf $(filter %.Pgrep, $^) >/dev/null; then \
>&2 $(ECHO) "lint-man-quote: $<: Unmatched quote:"; \
- >&2 $(GREP) -PTnf '$(quote_Pgrep)' <$<; \
+ >&2 $(GREP) -PTnf '$(filter %.Pgrep, $^)' <$<; \
exit 1; \
fi;
$(TOUCH) $@
undefine ext
undefine xfail
+undefine regexf
undefine tgts
ext := .lint-man.ws.touch
xfail := $(MAKEFILEDIR)/lint/man/ws.xfail
+regexf := $(MAKEFILEDIR)/lint/man/ws.egrep
tgts := $(patsubst %, %$(ext), $(_NONSO))
ifeq ($(SKIP_XFAIL),yes)
endif
-ws_egrep := $(MAKEFILEDIR)/lint/man/ws.egrep
-
-
-$(tgts): %$(ext): % $(ws_egrep) $(MK) | $$(@D)/
+$(tgts): %$(ext): % $(regexf) $(MK) | $$(@D)/
$(info $(INFO_)GREP $@)
$(CAT) <$< \
- | if $(GREP) -Ef $(ws_egrep) >/dev/null; then \
+ | if $(GREP) -Ef $(filter %.egrep, $^) >/dev/null; then \
>&2 $(ECHO) "lint-man-ws: $<: Spurious white space:"; \
- >&2 $(GREP) -ETnf '$(ws_egrep)' <$<; \
+ >&2 $(GREP) -ETnf '$(filter %.egrep, $^)' <$<; \
exit 1; \
fi;
$(TOUCH) $@
undefine ext
undefine xfail
+undefine regexf
undefine tgts