Skip to content
Snippets Groups Projects
Select Git revision
  • ca7ba73d5c7b8cd17f3b2722be8260b2a6bedf86
  • master default protected
  • 1.31
  • 4.30.1
  • 4.30.0
  • 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
23 results

devenv.yaml

Blame
  • target-go-fetch-licenses.mk 1.04 KiB
    #############################################################################################
    #############################################################################################
    ##
    ## GET LICENSES
    ##
    #############################################################################################
    #############################################################################################
    
    GO_MOD_FILE := $(SOURCE_PATH)go.mod
    
    ifeq ($(shell test -e $(GO_MOD_FILE) && echo -n yes),yes)
        GO_CURRENT_MODULE := $(shell cat $(GO_MOD_FILE) | head -n1 | cut -d" " -f2)
    	# go install github.com/google/go-licenses@latest
    	EXECUTABLES = $(EXECUTABLES:-) go-licenses;    
    endif
    
    .PHONY: go-fetch-licenses
    ## Fetch licenses for all modules
    go-fetch-licenses:
    ifeq ($(GO_CURRENT_MODULE),)
    	$(QUIET) $(ECHOERRORMARKER) "no go.mod file found, skipping fetching licenses"
    else
    	$(ECHOMARKER) "Fetch licenses"
    	$(QUIET) cd $(SOURCE_PATH); go-licenses save $(GO_CURRENT_MODULE) $(GO_LICENSES_IGNORE_PACKAGES) --force --save_path $(DOCUMENTATION_PATH)licenses/ ; cd -
    endif