Skip to content

Releases: makefile-inc/common

Refactoring and customize help output

Choose a tag to compare

@name212 name212 released this 29 Sep 18:56
7bfc22d

Add:

  • next params to help target:
    • HELP_DISABLE_LIBRARIES
    • HELP_LIBRARIES_FIRST
    • HELP_LIBRARIES_OUT
  • script includes INCLUDE_MAKE_HELP with:
    • out_help_for_file function
    • and variables CURRENT_MAKEFILE_PATH and CURRENT_MAKEFILE_PATH_FULL

Changes:

  • help target will customize now. Output only you make target, filter libraries for output, out your make targets in bottom of output. Please see Customize output help in our project section in README.md

Chore:

  • move help target and its helpers to separate 01-help.mk file
  • upgrade yq to 4.54.1 version

Fix error in foreach_dir_by_glob if not found any file

Choose a tag to compare

@name212 name212 released this 12 Aug 17:45
398d8dc

Fix:

  • fix error in foreach_dir_by_glob if not found any file

Add bin target to phony

Choose a tag to compare

@name212 name212 released this 12 Aug 16:42
2a4874b

Fix:

  • add bin target to .PHONY

Remove unnecessary slash from include.mk.inc

Choose a tag to compare

@name212 name212 released this 12 Aug 15:04
90fc5db

Chore:

  • Remove unnecessary slash from include.mk.inc

Fix upgrade in readme

Choose a tag to compare

@name212 name212 released this 11 Aug 19:29
f53f195

Chore:

  • fix upgrade in README

Add license check target and some bash utils

Choose a tag to compare

@name212 name212 released this 11 Aug 19:22
2ebfe76

BREAKING CHANGES:

  • BINARIES_PATH move from $(CURDIR)/bin to $(CURDIR)/.bin
    Please update your .gitignore file from ignore bin/ dir to .bin/!
  • common/git/check/has-diff - now output new files not in index-tree, if FILES_TO_CHECK and FILES_TO_SKIP

Add:

  • Makefile variables:
    • GET_GIT_FILES_SEPARATOR - files list separator using to output in bash function get_git_changed_files
  • Next bash utils functions in includes defines:
    • INCLUDE_STRINGS - some string urils
      • append_str_with_separator - append string to end with separator
        prefix and return
      • append_str_with_new_line - call append_str_with_separator with new
        line separator
      • shift_str_on - split string by new line and add prefix (shift) for
        each line
        • shift_str_on_tab - call shift_str_on with tab prefix
        • escape_re_str - escape string as regexp string (to pass to grep)
    • INCLUDE_FS_CONSUME - call function with glob find
      • toggle_globs - enable/disable next globs params dotglob nullglob
        globstar
        • is_glob - check passed string is glob string
      • do_in_dir - cd to 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 operations
      • is_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 changes
    • common/license/check - check that all files with extension have
      license head

Changes:

  • common/git/check/has-diff - add param SKIP_NEW_FILES to skip
    adding new files to diff

Fix:

  • remove git pull in install/upgrade sections in README

Chore:

  • move strings utils defines to 00-strings.mk
  • refact code to new bash utils functions
  • upgrade jq version to 1.8.2
  • some formatting fixes in README

Change default build dir and add release artifacts target

Choose a tag to compare

@name212 name212 released this 19 Jul 17:52
32fdc8a

BREAKING CHANGES:

  • change default build directory from $(CURDIR)/build to
    $(CURDIR)/.build

Add:

  • Prepare release artifacts targets see README for information:
    • common/release/dir
    • common/release
    • clean/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_PATH dir to prepare release artifacts (default
    $(CURDIR)/.release) and SET_RELEASE_PATH for redeclare
    • TAR_BIN - tar bin name (gtar for MacOS)
    • FIND_BIN - find bin name (gfind for MacOS)

Chore:

  • move check/installed/*to check/installed/bin target
  • refact common/git/check/gitignore to INCLUDE_ECHO functions

Fix common/build/all target

Choose a tag to compare

@name212 name212 released this 09 Jul 21:49
f15756d

Fix:

  • incorrect recursive call for common/build/all

add common/ prefix to build target

Choose a tag to compare

@name212 name212 released this 09 Jul 21:36
4671054

BREAKING CHANGES:

  • add common/ for all build targets

Chore:

  • Add information for update module and warning about .gitignore check

add HAS_DIFF_MSG to common/git/check/has-diff

Choose a tag to compare

@name212 name212 released this 08 Jul 21:05
75399bf

Add:

  • HAS_DIFF_MSG param to common/git/check/has-diff target