Skip to content

Commit 86afefa

Browse files
committed
tarball: add help targets.
1 parent 6f14f15 commit 86afefa

File tree

1 file changed

+72
-0
lines changed

1 file changed

+72
-0
lines changed

crossplatform.mk

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,78 @@ ifdef WINDOWS_TARGET
454454
endif
455455
endif
456456

457+
_example_space = $(space)$(space)$(space)
458+
_mkcmd_example = $(space)$(space)$(space)$(MAKE_COMMAND)
459+
460+
NOT_PARALLEL_TARGETS += help
461+
.PHONY: help
462+
help:
463+
@$(info Ecere SDK Make Help)
464+
@$(info )
465+
@$(info help consists of command examples. try them!)
466+
@$(info )
467+
@$(info $(_mkcmd_example) help -- this)
468+
@$(info $(_mkcmd_example) help-advanced -- advanced build commands)
469+
@$(info $(_mkcmd_example) help-troubleshoot -- troubleshooting commands)
470+
@$(info )
471+
@$(info $(_mkcmd_example) -- build ecere-sdk)
472+
@$(info $(_mkcmd_example) all -- same)
473+
@$(info $(_mkcmd_example) -j1 -- build 1 step at a time)
474+
@$(info $(_mkcmd_example) -j8 -- build with 8 parallel jobs)
475+
@$(info $(_mkcmd_example) V=1 -- verbose build)
476+
@$(info $(_mkcmd_example) wipeclean all -- fully rebuild)
477+
@$(info $(_mkcmd_example) ARCH=x32 -- build 32-bit binaries)
478+
@$(info $(_mkcmd_example) ENABLE_SSL=y -- enable OpenSSL in Ecere library)
479+
@$(info $(_mkcmd_example) EDASQLite=y -- build SQLite driver for EDA)
480+
@$(info $(_mkcmd_example) EDASQLiteCipher=y -- build SQLiteCipher driver for EDA)
481+
@$(info $(_mkcmd_example) EDAdBASE=y -- build dBASE driver for EDA)
482+
@$(info $(_mkcmd_example) DISABLE_BINARY_COMPRESSION=y -- disable use of binary compression)
483+
@$(info )
484+
@$(info $(_mkcmd_example) ENABLE_SSL=y EDASQLite=y all -j9 -- common build)
485+
@$(info $(_mkcmd_example) ENABLE_SSL=y ARCH=x32 all -j9 -- common 32-bit build)
486+
@$(info $(_mkcmd_example) ENABLE_SSL=y EDASQLite=y wipeclean all -j9 -- common full rebuild)
487+
@$(info $(_mkcmd_example) ENABLE_SSL=y ARCH=x32 wipeclean all -j9 -- common 32-bit full rebuild)
488+
@$(info )
489+
@$(info $(_mkcmd_example) clean -- delete all intermediate object files)
490+
@$(info $(_mkcmd_example) realclean -- remove all release intermediate object directories)
491+
@$(info $(_mkcmd_example) wipeclean -- remove all intermediate object directories)
492+
@$(info )
493+
494+
NOT_PARALLEL_TARGETS += help-advanced
495+
.PHONY: help-advanced
496+
help-advanced:
497+
@$(info advanced commands:)
498+
@$(info )
499+
@$(info $(_mkcmd_example) distclean -- remove all workspaces, generated makefiles and intermediate object directories)
500+
@$(info )
501+
@$(info $(_mkcmd_example) wipeclean all c_bindings cxx_bindings_gen -- combine all these targets)
502+
@$(info )
503+
@$(info linux only commands:)
504+
@$(info )
505+
@$(info $(_example_space)time sh -c '$(MAKE_COMMAND) wipeclean all c_bindings cxx_bindings_gen -j9 && echo && make RENAME_B32=1 ARCH=x32 all -j9')
506+
@$(info )
507+
508+
NOT_PARALLEL_TARGETS += help-troubleshoot
509+
.PHONY: help-troubleshoot
510+
help-troubleshoot:
511+
@$(info troubleshooting commands:)
512+
@$(info )
513+
@$(info $(_mkcmd_example) troubleshoot -- print the definition for all prepackaged list of variables)
514+
@$(info $(_mkcmd_example) troubleshoot-core -- print the definition for the core list of variables)
515+
@$(info $(_mkcmd_example) troubleshoot-toolchain -- print the definition for the toolchain list of variables)
516+
@$(info $(_mkcmd_example) troubleshoot-openssl -- print the definition for the openssl list of variables)
517+
@$(info $(_mkcmd_example) troubleshoot-version -- print the definition for the version list of variables)
518+
@$(info )
519+
@$(info $(_mkcmd_example) print-all-vars-info -- print the definition for all variables)
520+
@$(info $(_mkcmd_example) print-all-vars-stat -- print the definition, origin and flavor for all variables)
521+
@$(info $(_mkcmd_example) print-var-info-PLATFORM -- print the definition for the PLATFORM variable)
522+
@$(info $(_mkcmd_example) print-substr-vars-full-DIR -- print all information for all variables containing the DIR string)
523+
@$(info )
524+
@$(info available modes for print-var-<mode>-<name> and print-substr-vars-<mode>-<substring> targets:)
525+
@$(info $(_example_space)info (definition only)$(comma) eval (value only)$(comma) both (definition and value)$(comma))
526+
@$(info $(_example_space)stat (definition$(comma) origin and flavor) and full (definition$(comma) value$(comma) origin and flavor))
527+
@$(info )
528+
457529
var_info = $(if $(value $1),$1 = $(value $1),$1 is defined as an empty value)
458530
var_eval = $(if $(value $1),$(if $($1),$1 = $($1),$1 evaluates to an empty value),$1 is defined as an empty value)
459531
var_both = $(if $(value $1),$1 = $(value $1) $(if $($1),$(if $(call str_is,$($1),$(value $1)),(equal to definition),= $($1)),= (empty value)),$1 is defined as an empty value)

0 commit comments

Comments
 (0)