From e3ef776277b94f37a6246091f0d91e245500a4ef Mon Sep 17 00:00:00 2001 From: Julien Rioux Date: Fri, 12 Jul 2013 20:16:29 +0200 Subject: [PATCH] Build: Document the default make target. Update `make help' to correctly document the generic targets. Also add `local-all' target and mark the targets as PHONY. --- stepmake/stepmake/generic-targets.make | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/stepmake/stepmake/generic-targets.make b/stepmake/stepmake/generic-targets.make index 1b998b938d..7e29760e42 100644 --- a/stepmake/stepmake/generic-targets.make +++ b/stepmake/stepmake/generic-targets.make @@ -1,10 +1,12 @@ -.PHONY : all clean bin-clean default dist exe help html lib TAGS\ +.PHONY : all clean bin-clean default dist exe help html lib man TAGS\ po doc doc-stage-1 WWW-1 WWW-2 WWW-post local-WWW-1 local-WWW-2\ - log-clean + local-all local-clean local-bin-clean local-doc log-clean -all: default +all: default $(LOOP) +local-all: default + man: $(LOOP) @@ -37,8 +39,9 @@ generic-help: @echo "Targets specific to current directory:" help: generic-help local-help - @echo "Generic targets that recurse into subdirectories*:" + @echo "Generic targets that recurse into subdirectories:" @echo " all update everything except documentation with images" + @echo " (same as the empty target)" @echo " clean remove all generated stuff in $(outdir)" @echo " bin-clean same as clean, except that mf/out is preserved" @echo " doc update documentation with images in directory \`out-www'" @@ -52,7 +55,7 @@ help: generic-help local-help @echo " any of the above commands to the current directory." @echo @echo "Other generic targets:" - @echo " default same as the empty target" + @echo " default same as \`make all', but restricted to the current directory" @echo " exe update all executables" @echo " help this help" @echo " lib update all libraries" -- 2.39.2