Run periodcheck on "make" and "make all". It uses an intermediate target, periodcheck-auto, which depends on $(targ). The dependency ensures that periodcheck runs after runlatex completes in parallel build but doesn't run if runlatex fails. "make periodcheck" keeps its behavior and does not run pdflatex. While we are here, improve targets "mslm" and "qq" by adding dependencies to ensure that the message concerning the obsolete targets not to be missed. Suggested-by: Paul E. McKenney <paulmck@xxxxxxxxxx> Signed-off-by: Akira Yokosawa <akiyks@xxxxxxxxx> --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ea264dc5..dc6b68e0 100644 --- a/Makefile +++ b/Makefile @@ -192,9 +192,9 @@ BASE_DEPENDS := perfbook.tex $(foreach v,tcb 1c msns mss mstx msr msn msnt sf nq .PHONY: qq perfbook-qq.pdf qqmsg .PHONY: help help-official help-full help-semiofficial help-paper help-draft .PHONY: help-experimental help-prefixed -.PHONY: paper-clean periodcheck +.PHONY: paper-clean periodcheck periodcheck-auto -all: $(targ) +all: periodcheck-auto ifeq ($(MAKECMDGOALS),clean) else ifeq ($(MAKECMDGOALS),distclean) @@ -206,16 +206,16 @@ endif 2c: perfbook.pdf mslm: perfbook-mslm.pdf -perfbook-mslm.pdf: perfbook.pdf mslmmsg +perfbook-mslm.pdf: mslmmsg qq: perfbook-qq.pdf -perfbook-qq.pdf: perfbook.pdf qqmsg +perfbook-qq.pdf: qqmsg -mslmmsg: +mslmmsg: perfbook.pdf @echo "perfbook-mslm.pdf is promoted to default target," @echo "built as perfbook.pdf." -qqmsg: +qqmsg: perfbook.pdf @echo "perfbook-qq.pdf is promoted to default target," @echo "built as perfbook.pdf." @@ -614,5 +614,8 @@ neatfreak: distclean periodcheck: utilities/periodcheck.sh +periodcheck-auto: $(targ) + utilities/periodcheck.sh + .SECONDEXPANSION: $(ABBREVTARGETS): %: perfbook-$$@.pdf -- 2.17.1