-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (33 loc) · 847 Bytes
/
Makefile
File metadata and controls
41 lines (33 loc) · 847 Bytes
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
39
40
41
all: zannotate
zannotate:
cd cmd/zannotate && \
go build -o zannotate && \
cd - && \
mv cmd/zannotate/zannotate .
clean:
rm -f zannotate
install:
cd cmd/zannotate && \
go install
uninstall:
# Remove the binary from the $PATH
@echo "Are you sure you want to uninstall zannotate? (y/n)"
@read -r answer && \
if [ "$$answer" = "y" ]; then \
rm -f $$(which zannotate 2>/dev/null || true); \
echo "zannotate has been uninstalled."; \
else \
echo "Uninstallation cancelled."; \
fi
test:
go test -v ./...
lint:
goimports -w -local "github.com/zmap/zannotate" ./
gofmt -s -w ./
golangci-lint run
@if ! command -v black >/dev/null 2>&1; then pip3 install black; fi
black ./
license-check:
./.github/workflows/check_license.sh
ci: zannotate lint test license-check
.PHONY: zannotate clean install test lint ci license-check