diff --git a/Makefile b/Makefile index c01ba954..44dbeeca 100644 --- a/Makefile +++ b/Makefile @@ -92,11 +92,11 @@ vendor-compat: FORCE license-headers: FORCE prepare-static-check @printf "\e[1;36m>> addlicense\e[0m\n" - @addlicense -c "SAP SE" -- $(patsubst $(shell go list .)%,.%/*.go,$(shell go list ./...)) + @addlicense -c "SAP SE" -- $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...)) check-license-headers: FORCE prepare-static-check @printf "\e[1;36m>> addlicense --check\e[0m\n" - @addlicense --check -- $(patsubst $(shell go list .)%,.%/*.go,$(shell go list ./...)) + @addlicense --check -- $(patsubst $(shell awk '$$1 == "module" {print $$2}' go.mod)%,.%/*.go,$(shell go list ./...)) check-dependency-licenses: FORCE prepare-static-check @printf "\e[1;36m>> go-licence-detector\e[0m\n"