The @: dummy recipe was there to avoid having rules without recipes.
Rules without recipes can be confusing, as the reader can't know if a
recipe is being defined somewhere else. Also, implicit rules might
apply (in general, but we disable all implicit stuff).
However, @: is also problematic, since make really needs to run that
command, which is unnecessary overhead. But okay, :(1) (really called
true(1), but wouldn't it be a nice man page name?) that's not meaningful
overhead.
And the bigger problem: having a recipe hides the usual:
make: Nothing to be done for 'all'.
We already disable it by using .SILENCE:, but the message can be seen
when using V=1 (after this patch; prior to this patch, it was impossible
to find that message). It is good to be able to know that make(1)
says there's nothing to be done, as a confirmation.
Signed-off-by: Alejandro Colomar <alx@kernel.org>
.PHONY: all
-all: build
- @:
+all: build;
.PHONY: help
help:
.PHONY: build
-build: build-catman build-html build-pdf build-ps build-src
- @:
+build: build-catman build-html build-pdf build-ps build-src;
.PHONY: clean
clean:
.PHONY: build-catman-eqn
-build-catman-eqn: $(_CATMAN_troff)
- @:
+build-catman-eqn: $(_CATMAN_troff);
.PHONY: build-catman-troff-man
-build-catman-troff-man: $(_CATMAN_MAN_set)
- @:
+build-catman-troff-man: $(_CATMAN_MAN_set);
.PHONY: build-catman-troff-mdoc
-build-catman-troff-mdoc: $(_CATMAN_MDOC_set)
- @:
+build-catman-troff-mdoc: $(_CATMAN_MDOC_set);
.PHONY: build-catman-troff
-build-catman-troff: build-catman-troff-man build-catman-troff-mdoc
- @:
+build-catman-troff: build-catman-troff-man build-catman-troff-mdoc;
.PHONY: build-catman-grotty
-build-catman-grotty: $(_CATMAN)
- @:
+build-catman-grotty: $(_CATMAN);
.PHONY: build-catman
-build-catman: build-catman-grotty
- @:
+build-catman: build-catman-grotty;
endif # include guard
.PHONY: build-html html
-build-html html: $(_HTMLPAGES)
- @:
+build-html html: $(_HTMLPAGES);
endif # include guard
.PHONY: build-pdf-eqn
-build-pdf-eqn: $(_PDFMAN_troff)
- @:
+build-pdf-eqn: $(_PDFMAN_troff);
.PHONY: build-pdf-troff-man
-build-pdf-troff-man: $(_PDFMAN_MAN_set)
- @:
+build-pdf-troff-man: $(_PDFMAN_MAN_set);
.PHONY: build-pdf-troff-mdoc
-build-pdf-troff-mdoc: $(_PDFMAN_MDOC_set)
- @:
+build-pdf-troff-mdoc: $(_PDFMAN_MDOC_set);
.PHONY: build-pdf-troff
-build-pdf-troff: build-pdf-troff-man build-pdf-troff-mdoc
- @:
+build-pdf-troff: build-pdf-troff-man build-pdf-troff-mdoc;
.PHONY: build-pdf-gropdf
-build-pdf-gropdf: $(_PDFMAN)
- @:
+build-pdf-gropdf: $(_PDFMAN);
.PHONY: build-pdf
-build-pdf: build-pdf-gropdf
- @:
+build-pdf: build-pdf-gropdf;
endif # include guard
.PHONY: build-pre-preconv
-build-pre-preconv: $(_MAN_tbl)
- @:
+build-pre-preconv: $(_MAN_tbl);
.PHONY: build-pre-tbl
-build-pre-tbl: $(_MAN_eqn)
- @:
+build-pre-tbl: $(_MAN_eqn);
.PHONY: build-pre
-build-pre: build-pre-tbl
- @:
+build-pre: build-pre-tbl;
endif # include guard
.PHONY: build-ps-eqn
-build-ps-eqn: $(_PSMAN_troff)
- @:
+build-ps-eqn: $(_PSMAN_troff);
.PHONY: build-ps-troff-man
-build-ps-troff-man: $(_PSMAN_MAN_set)
- @:
+build-ps-troff-man: $(_PSMAN_MAN_set);
.PHONY: build-ps-troff-mdoc
-build-ps-troff-mdoc: $(_PSMAN_MDOC_set)
- @:
+build-ps-troff-mdoc: $(_PSMAN_MDOC_set);
.PHONY: build-ps-troff
-build-ps-troff: build-ps-troff-man build-ps-troff-mdoc
- @:
+build-ps-troff: build-ps-troff-man build-ps-troff-mdoc;
.PHONY: build-ps-grops
-build-ps-grops: $(_PSMAN)
- @:
+build-ps-grops: $(_PSMAN);
.PHONY: build-ps
-build-ps: build-ps-grops
- @:
+build-ps: build-ps-grops;
endif # include guard
.PHONY: build-src-c
-build-src-c: $(_UNITS_src_c)
- @:
+build-src-c: $(_UNITS_src_c);
.PHONY: build-src-cc
-build-src-cc: $(_UNITS_src_o)
- @:
+build-src-cc: $(_UNITS_src_o);
.PHONY: build-src-ld
-build-src-ld: $(_UNITS_src_bin)
- @:
+build-src-ld: $(_UNITS_src_bin);
.PHONY: build-src
build-src: build-src-ld
.PHONY: check
-check: $(check)
- @:
+check: $(check);
endif # include guard
.PHONY: check-catman-col
-check-catman-col: $(_CHECK_catman_grep)
- @:
+check-catman-col: $(_CHECK_catman_grep);
.PHONY: check-catman-grep
-check-catman-grep: $(_CHECK_catman)
- @:
+check-catman-grep: $(_CHECK_catman);
.PHONY: check-catman
-check-catman: check-catman-grep
- @:
+check-catman: check-catman-grep;
endif # include guard
.PHONY: dist-tar
-dist-tar: $(DISTFILE)
- @:
+dist-tar: $(DISTFILE);
.PHONY: $(dist)
-$(dist): dist-%: $(DISTFILE).%
- @:
+$(dist): dist-%: $(DISTFILE).%;
.PHONY: dist
-dist: $(dist)
- @:
+dist: $(dist);
endif # include guard
.PHONY: install
-install: install-man
- @:
+install: install-man;
.PHONY: uninstall
-uninstall: uninstall-man
- @:
+uninstall: uninstall-man;
endif # include guard
.PHONY: install-html
-install-html: $(_htmlpages)
- @:
+install-html: $(_htmlpages);
.PHONY: uninstall-html
-uninstall-html: $(_htmldir_rmdir) $(_htmldirs_rmdir) $(_htmlpages_rm)
- @:
+uninstall-html: $(_htmldir_rmdir) $(_htmldirs_rmdir) $(_htmlpages_rm);
endif # include guard
.PHONY: $(install_manX)
-$(install_manX): install-man%: $$(_man%pages)
- @:
+$(install_manX): install-man%: $$(_man%pages);
.PHONY: install-man
-install-man: $(install_manX)
- @:
+install-man: $(install_manX);
.PHONY: $(uninstall_manX)
-$(uninstall_manX): uninstall-man%: $$(_man%pages_rm) $$(_man%dir_rmdir)
- @:
+$(uninstall_manX): uninstall-man%: $$(_man%pages_rm) $$(_man%dir_rmdir);
.PHONY: uninstall-man
-uninstall-man: $(_mandir_rmdir) $(uninstall_manX)
- @:
+uninstall-man: $(_mandir_rmdir) $(uninstall_manX);
endif # include guard
.PHONY: lint
-lint: $(lint)
- @:
+lint: $(lint);
endif # include guard
.PHONY: $(lint_c)
-$(lint_c): lint-c-%: $$(_LINT_c_%)
- @:
+$(lint_c): lint-c-%: $$(_LINT_c_%);
.PHONY: lint-c
-lint-c: $(lint_c)
- @:
+lint-c: $(lint_c);
endif # include guard
.PHONY: $(lint_man)
-$(lint_man): lint-man-%: $$(_LINT_man_%)
- @:
+$(lint_man): lint-man-%: $$(_LINT_man_%);
.PHONY: lint-man
-lint-man: $(lint_man)
- @:
+lint-man: $(lint_man);
endif # include guard
.PHONY: $(lint_mdoc)
-$(lint_mdoc): lint-mdoc-%: $$(_LINT_mdoc_%)
- @:
+$(lint_mdoc): lint-mdoc-%: $$(_LINT_mdoc_%);
.PHONY: lint-mdoc
-lint-mdoc: $(lint_mdoc)
- @:
+lint-mdoc: $(lint_mdoc);
endif # include guard