Skip to content
Snippets Groups Projects
Select Git revision
  • 6078722a1f97bf4886b9d1bcffec563e27708b8d
  • master default protected
  • 1.31
  • 4.29.1
  • 4.29.0
  • 4.28.0
  • 4.27.0
  • 4.26.0
  • 4.25.5
  • 4.25.4
  • 4.25.3
  • 4.25.2
  • 4.25.1
  • 4.25.0
  • 4.24.3
  • 4.24.2
  • 4.24.1
  • 4.24.0
  • 4.23.6
  • 4.23.5
  • 4.23.4
  • 4.23.3
  • 4.23.2
23 results

licenses.mk

Blame
  • licenses.mk 1.04 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## LICENSE
    ##
    #############################################################################################
    #############################################################################################
    
    ifeq ($(GO),)
      $(error $(ERRORMARKER) Go is not defined, check your Makefile if go.mk is included)
    endif
    
    ifneq "$(wildcard $(SOURCE_PATH) )" ""
      ## Files wich should be checked for license headers
      LICENSE_FILE_PATTERN ?= $(shell find $(SOURCE_PATH) -type f \( -iname \*.go -o -iname \*.php -o -iname \*.js -o -iname \*.mjs -o -iname \*.cjs \) )
    endif
    
    # https://spdx.github.io/spdx-spec/v2.3/SPDX-license-list/
    ADDLICENSE_BIN ?= addlicense
    ifeq ($(shell command -v $(ADDLICENSE_BIN) 2> /dev/null),)
      $(shell $(GO) install github.com/google/addlicense@latest)
      EXECUTABLES = $(EXECUTABLES:-) $(ADDLICENSE_BIN);
    endif
    
    EXECUTABLES = $(EXECUTABLES:-) $(ADDLICENSE_BIN)