-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (29 loc) · 1.08 KB
/
Makefile
File metadata and controls
38 lines (29 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# All project Go/PHP/Python/React/Ballerina/Ruby/Java files
ALL_GO_FILES := $(shell \
find . -type f -name '*.go' \
| sort)
ALL_PYTHON_FILES := $(shell \
find . -type f -name '*.py' \
| sort)
ALL_REACT_FILES := $(shell \
find . -type f \( -name '*.js' -o -name '*.jsx' -o -name '*.ts' -o -name '*.tsx' \) \
| sort)
ALL_BALLERINA_FILES := $(shell \
find . -type f -name '*.bal' \
| sort)
ALL_RUBY_FILES := $(shell \
find . -type f -name '*.rb' \
| sort)
ALL_JAVA_FILES := $(shell \
find . -type f -name '*.java' \
| sort)
ALL_SOURCE_FILES := $(ALL_GO_FILES) $(ALL_PYTHON_FILES) $(ALL_REACT_FILES) $(ALL_BALLERINA_FILES) $(ALL_RUBY_FILES) $(ALL_JAVA_FILES)
# Path to your tool (update if different)
LICENSE_TOOL := go run ./licenser/main.go
LICENSE_HOLDER := "The OpenChoreo Authors"
.PHONY: license-check
license-check: ## Check all source files for license headers
@CHECK_ONLY=1 $(LICENSE_TOOL) -check-only -c $(LICENSE_HOLDER) $(ALL_SOURCE_FILES)
.PHONY: license-fix
license-fix: ## Add license headers to all source files
@$(LICENSE_TOOL) -c $(LICENSE_HOLDER) $(ALL_SOURCE_FILES)