Skip to content
Snippets Groups Projects
Select Git revision
  • 5172c0e4f0a4c70d3052d31ed7f5398e719b0365
  • master default protected
  • v1.23.2
  • v1.23.1
  • v1.23.0
  • v1.22.0
  • v1.21.1
  • v1.21.0
  • v1.20.3
  • v1.20.2
  • v1.20.1
  • v1.20.0
  • v1.19.4
  • v1.19.3
  • v1.19.2
  • v1.19.1
  • v1.19.0
  • v1.18.2
  • v1.18.1
  • v1.18.0
  • v1.17.0
  • v1.16.1
22 results

runnable-http.go

Blame
  • target-add-licenses.mk 1.21 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## ADD SPDX LICENSES
    ##
    ## For commercial projects, it is not necessary to add the SPDX license identifier.
    ## The license header in each file is only for open-source projects, for example under 
    ## the AGPL 3.0 license.
    ##
    #############################################################################################
    #############################################################################################
    
    ifeq ($(ADDLICENSE_BIN),) 
      $(error "addlicense is not installed. Please check your makefile and include the licenses.mk")
    endif
    
    .PHONY: add-licenses
    ## Add license headers to all go files
    add-licenses:
    	$(ECHOMARKER) "Add license headers to all sourche files"
    ifeq ($(LICENSE_FILE_PATTERN),)
    	$(error "LICENSE_FILE_PATTERN is not set. Please check your makefile and include the licenses.mk")
    endif
    
    ifndef SPDX_LICENSE_ID 
    	$(error "SPDX_LICENSE_ID is not defined. Please check your makefile and include the licenses.mk")
    endif
    	$(QUIET) $(ADDLICENSE_BIN) -c "$(COPYRIGHT_OWNER)" -s -l "$(SPDX_LICENSE_ID)" $(LICENSE_FILE_PATTERN)