]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
share/mk/: Remove unused variables
authorAlejandro Colomar <alx@kernel.org>
Wed, 10 Sep 2025 15:58:40 +0000 (17:58 +0200)
committerAlejandro Colomar <alx@kernel.org>
Thu, 11 Sep 2025 08:10:55 +0000 (10:10 +0200)
Signed-off-by: Alejandro Colomar <alx@kernel.org>
share/mk/lint/man/blank.mk
share/mk/lint/man/mandoc.mk
share/mk/lint/man/quote.mk
share/mk/lint/man/so.mk
share/mk/lint/man/ws.mk

index 7eb712a06d2ba4ec89d8725461a6ec8c9fcbf760..e89046d2740f874c01c542cf9974c96fc89f523b 100644 (file)
@@ -23,10 +23,7 @@ tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tg
 endif
 
 
-_LINT_man_blank := $(tgts)
-
-
-$(_LINT_man_blank): %.lint-man.blank.touch: % $(MK) | $$(@D)/
+$(tgts): %.lint-man.blank.touch: % $(MK) | $$(@D)/
        $(info  $(INFO_)GREP            $@)
        $(CAT) <$< \
        | if $(GREP) '^$$' >/dev/null; then \
@@ -38,7 +35,7 @@ $(_LINT_man_blank): %.lint-man.blank.touch: % $(MK) | $$(@D)/
 
 
 .PHONY: lint-man-blank
-lint-man-blank: $(_LINT_man_blank);
+lint-man-blank: $(tgts);
 
 
 undefine ext
index 2b9fb4fdd839789014c41dc192173b88b52c4187..7716616c52287b6cea3abd3f85bb0b1d0555dcee 100644 (file)
@@ -24,13 +24,11 @@ ifeq ($(SKIP_XFAIL),yes)
 tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tgts))
 endif
 
-_LINT_man_mandoc := $(tgts)
-
 
 mandoc_man_ignore_grep := $(MAKEFILEDIR)/lint/man/mandoc.ignore.grep
 
 
-$(_LINT_man_mandoc): %.lint-man.mandoc.touch: % $(mandoc_man_ignore_grep) $(MK) | $$(@D)/
+$(tgts): %.lint-man.mandoc.touch: % $(mandoc_man_ignore_grep) $(MK) | $$(@D)/
        $(info  $(INFO_)MANDOC          $@)
        ! ($(MANDOC) $(MANDOCFLAGS_) $< 2>&1 \
           | $(GREP) -v -f '$(mandoc_man_ignore_grep)' \
@@ -41,7 +39,7 @@ $(_LINT_man_mandoc): %.lint-man.mandoc.touch: % $(mandoc_man_ignore_grep) $(MK)
 
 
 .PHONY: lint-man-mandoc
-lint-man-mandoc: $(_LINT_man_mandoc);
+lint-man-mandoc: $(tgts);
 
 
 undefine ext
index 18e4b8fcd02f72039c15ccf90813db7ee8f1e9c9..95cec038ab8508f9f0c5d65f21e56a3d7a3c042a 100644 (file)
@@ -23,13 +23,10 @@ tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tg
 endif
 
 
-_LINT_man_quote := $(tgts)
-
-
 quote_Pgrep := $(MAKEFILEDIR)/lint/man/quote.Pgrep
 
 
-$(_LINT_man_quote): %.lint-man.quote.touch: % $(quote_Pgrep) $(MK) | $$(@D)/
+$(tgts): %.lint-man.quote.touch: % $(quote_Pgrep) $(MK) | $$(@D)/
        $(info  $(INFO_)GREP            $@)
        $(CAT) <$< \
        | if $(GREP) -Pf $(quote_Pgrep) >/dev/null; then \
@@ -41,7 +38,7 @@ $(_LINT_man_quote): %.lint-man.quote.touch: % $(quote_Pgrep) $(MK) | $$(@D)/
 
 
 .PHONY: lint-man-quote
-lint-man-quote: $(_LINT_man_quote);
+lint-man-quote: $(tgts);
 
 
 undefine ext
index 2fed2f21e79ccfa2c12514b46cee80a2bbe6d58f..07ae8963c13904d70310ccbb961e5dee933c90b5 100644 (file)
@@ -24,10 +24,7 @@ tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tg
 endif
 
 
-_LINT_man_so := $(tgts)
-
-
-$(_LINT_man_so): %.lint-man.so.touch: % $(MK) | $$(@D)/
+$(tgts): %.lint-man.so.touch: % $(MK) | $$(@D)/
        $(info  $(INFO_)FIND            $@)
        $(GREP) '^\.so ' <$< \
        | $(CUT) -f2 -d' ' \
@@ -36,7 +33,7 @@ $(_LINT_man_so): %.lint-man.so.touch: % $(MK) | $$(@D)/
 
 
 .PHONY: lint-man-so
-lint-man-so: $(_LINT_man_so);
+lint-man-so: $(tgts);
 
 
 undefine ext
index 9c9b101e9ad3b73921081b6aa73c8a8043bc619a..070059f18c0dc5df9160e3dd5972a0f8714a823c 100644 (file)
@@ -23,13 +23,10 @@ tgts := $(filter-out $(patsubst %, $(_MANDIR)/%$(ext), $(file < $(xfail))), $(tg
 endif
 
 
-_LINT_man_ws := $(tgts)
-
-
 ws_egrep := $(MAKEFILEDIR)/lint/man/ws.egrep
 
 
-$(_LINT_man_ws): %.lint-man.ws.touch: % $(ws_egrep) $(MK) | $$(@D)/
+$(tgts): %.lint-man.ws.touch: % $(ws_egrep) $(MK) | $$(@D)/
        $(info  $(INFO_)GREP            $@)
        $(CAT) <$< \
        | if $(GREP) -Ef $(ws_egrep) >/dev/null; then \
@@ -41,7 +38,7 @@ $(_LINT_man_ws): %.lint-man.ws.touch: % $(ws_egrep) $(MK) | $$(@D)/
 
 
 .PHONY: lint-man-ws
-lint-man-ws: $(_LINT_man_ws);
+lint-man-ws: $(tgts);
 
 
 undefine ext