Releases: makefile-inc/common
Releases · makefile-inc/common
Release list
Refactoring and customize help output
Add:
- next params to
helptarget:HELP_DISABLE_LIBRARIESHELP_LIBRARIES_FIRSTHELP_LIBRARIES_OUT
- script includes
INCLUDE_MAKE_HELPwith:out_help_for_filefunction- and variables
CURRENT_MAKEFILE_PATHandCURRENT_MAKEFILE_PATH_FULL
Changes:
helptarget will customize now. Output only you make target, filter libraries for output, out your make targets in bottom of output. Please seeCustomize output help in our projectsection inREADME.md
Chore:
- move
helptarget and its helpers to separate01-help.mkfile - upgrade
yqto4.54.1version
Fix error in foreach_dir_by_glob if not found any file
Fix:
- fix error in
foreach_dir_by_globif not found any file
Add bin target to phony
Fix:
- add
bintarget to.PHONY
Remove unnecessary slash from include.mk.inc
Chore:
- Remove unnecessary slash from include.mk.inc
Fix upgrade in readme
Chore:
- fix upgrade in README
Add license check target and some bash utils
BREAKING CHANGES:
BINARIES_PATHmove from$(CURDIR)/binto$(CURDIR)/.bin
Please update your.gitignorefile from ignorebin/dir to.bin/!common/git/check/has-diff- now output new files not in index-tree, ifFILES_TO_CHECKandFILES_TO_SKIP
Add:
- Makefile variables:
GET_GIT_FILES_SEPARATOR- files list separator using to output in bash functionget_git_changed_files
- Next bash utils functions in includes defines:
INCLUDE_STRINGS- some string urilsappend_str_with_separator- append string to end with separator
prefix and returnappend_str_with_new_line- callappend_str_with_separatorwith new
line separatorshift_str_on- split string by new line and add prefix (shift) for
each lineshift_str_on_tab- callshift_str_onwith tab prefixescape_re_str- escape string as regexp string (to pass to grep)
INCLUDE_FS_CONSUME- call function with glob findtoggle_globs- enable/disable next globs paramsdotglobnullglob
globstaris_glob- check passed string is glob string
do_in_dir-cdto dir and do function, after call returns to
current dir.foreach_dir_by_glob- call function for each file found by glob
INCLUDE_GIT_OPS- some git operationsis_git_repo_has_not_changes- returns 1 if git repo has diff
(uncommit changes)get_git_changed_files- returns 1 and echo list of files have
changes in one string separated by$(GET_GIT_FILES_SEPARATOR)
- Targets:
common/git/check/no-changes- check that git repo has not
uncommitted changescommon/license/check- check that all files with extension have
license head
Changes:
common/git/check/has-diff- add paramSKIP_NEW_FILESto skip
adding new files to diff
Fix:
- remove
git pullin install/upgrade sections in README
Chore:
- move strings utils defines to
00-strings.mk - refact code to new bash utils functions
- upgrade
jqversion to1.8.2 - some formatting fixes in README
Change default build dir and add release artifacts target
BREAKING CHANGES:
- change default build directory from
$(CURDIR)/buildto
$(CURDIR)/.build
Add:
- Prepare release artifacts targets see README for information:
common/release/dircommon/releaseclean/release
- Target for binaries
check/installed/bin- check binary is installed to system
- checks for some binaries
check/installed/tar,
check/installed/find,check/installed/sha256sum - Add variables:
RELEASE_PATHdir to prepare release artifacts (default
$(CURDIR)/.release) andSET_RELEASE_PATHfor redeclareTAR_BIN- tar bin name (gtarfor MacOS)FIND_BIN- find bin name (gfindfor MacOS)
Chore:
- move
check/installed/*tocheck/installed/bintarget - refact
common/git/check/gitignoretoINCLUDE_ECHOfunctions
Fix common/build/all target
Fix:
- incorrect recursive call for
common/build/all
add common/ prefix to build target
BREAKING CHANGES:
- add
common/for all build targets
Chore:
- Add information for update module and warning about
.gitignorecheck
add HAS_DIFF_MSG to common/git/check/has-diff
Add:
HAS_DIFF_MSGparam tocommon/git/check/has-difftarget