Skip to content

Commit 8582bf7

Browse files
committed
tarball: add help targets.
1 parent 7b8115c commit 8582bf7

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

crossplatform.mk

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,38 @@ ifdef WINDOWS_TARGET
448448
endif
449449
endif
450450

451+
.PHONY: help
452+
.NOTPARALLEL: help
453+
help:
454+
@$(call echo,Ecere SDK Make Help)
455+
@$(call echo,"")
456+
@$(call echo,"help consists of command examples. try them!")
457+
@$(call echo,"")
458+
@$(call echo,help command examples:)
459+
@$(call echo,"")
460+
@$(call echo, $(MAKE_COMMAND) help -- this target)
461+
@$(call echo, $(MAKE_COMMAND) help-troubleshoot -- show command examples for troubleshooting)
462+
@$(call echo,"")
463+
@$(call echo,linux only command examples:)
464+
@$(call echo,"")
465+
@$(call echo, time sh -c '$(MAKE_COMMAND) wipeclean all c_bindings cxx_bindings_gen -j9 && echo && make RENAME_B32=1 ARCH=x32 all -j9')
466+
467+
.PHONY: help-troubleshoot
468+
.NOTPARALLEL: help-troubleshoot
469+
help-troubleshoot:
470+
@$(call echo,troubleshooting command examples:)
471+
@$(call echo,"")
472+
@$(call echo, $(MAKE_COMMAND) troubleshoot-example -- print the definition for this prepackaged list of variables)
473+
@$(call echo, $(MAKE_COMMAND) print-all-vars-info -- print the definition for all variables)
474+
@$(call echo, $(MAKE_COMMAND) print-all-vars-stat -- print the definition, origin and flavor for all variables)
475+
@$(call echo, $(MAKE_COMMAND) print-var-info-PLATFORM -- print the definition for the PLATFORM variable)
476+
@$(call echo, $(MAKE_COMMAND) print-substr-vars-full-DIR -- print all information for all variables containing the DIR string)
477+
@$(call echo,"")
478+
@$(call echo,available modes for print-var-<mode>-<name> and print-substr-vars-<mode>-<substring> targets:)
479+
@$(call echo, info (definition only)$(comma) eval (value only)$(comma) both (definition and value)$(comma))
480+
@$(call echo, stat (definition$(comma) origin and flavor) and full (definition$(comma) value$(comma) origin and flavor))
481+
@$(call echo,"")
482+
451483
var_info = $(if $(value $1),$1 = $(value $1),$1 is defined as an empty value)
452484
var_eval = $(if $(value $1),$(if $($1),$1 = $($1),$1 evaluates to an empty value),$1 is defined as an empty value)
453485
var_both = $(if $(value $1),$1 = $(value $1) $(if $($1),$(if $(call str_is,$($1),$(value $1)),(value equal to definition),= $($1)),= (empty value)),$1 is defined as an empty value)

0 commit comments

Comments
 (0)