-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 768 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 768 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
all: help
# Build file-server image.
docker-build-file-server:
@echo "Begin to use docker build file-server image."
docker build -t file-server:latest -f ./tools/file-server/Dockerfile .
.PHONY: docker-build-file-server
# Run code lint
lint: markdownlint
@echo "Begin to golangci-lint."
@golangci-lint run
.PHONY: lint
# Run markdown lint
markdownlint:
@echo "Begin to markdownlint."
@./hack/markdownlint.sh
.PHONY: markdownlint
# Clear compiled files
clean:
@go clean
@rm -rf bin .go .cache
.PHONY: clean
help:
@echo "make docker-build-file-server build file-server image"
@echo "make lint run code lint"
@echo "make markdownlint run markdown lint"
@echo "make clean clean"