Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions common.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,12 @@ scan: $(OSV_SCANNER) ## scan for vulnerabilities

.PHONY: addlicense
addlicense: $(ADDLICENSE) ## Add License headers containing of `license` and `comment` to files matched by `pattern`.
@test -n "$(license)" && test -n "$(comment)" && test -n "$(pattern)" \
git ls-files '$(pattern)' | xargs -r $(ADDLICENSE) -c '$(comment)' -l '$(license)' -s=only
@test -n "$(license)" && test -n "$(comment)" && test -n "$(pattern)" && \
git ls-files '$(pattern)' | xargs -r $(ADDLICENSE) -c '$(comment)' -l '$(license)' -s=only $(extraargs)

.PHONY: addlicense-check
addlicense-check:
$(MAKE) addlicense extraargs='-check'

# Local dev environment
.PHONY: setup-local-cluster
Expand Down
Loading