-
Notifications
You must be signed in to change notification settings - Fork 71
Expand file tree
/
Copy pathMakefile
More file actions
37 lines (29 loc) · 680 Bytes
/
Makefile
File metadata and controls
37 lines (29 loc) · 680 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
# Output executable name
EXECUTABLE=megacmd
# Override settings from user configuration (if available)
-include config.mk
build:
go build -o $(EXECUTABLE)
clean:
rm -f $(EXECUTABLE)
rm -rf tests/junk
rm -f tests/t.json
test: build
./tests/run_tests.sh $(EXECUTABLE)
test_release:
goreleaser --skip-publish --rm-dist --snapshot
release:
git push --tags
goreleaser --rm-dist
# Get the build dependencies
build_dep:
go mod tidy
#go get -u github.com/kisielk/errcheck
#go get -u golang.org/x/tools/cmd/goimports
#go get -u github.com/golang/lint/golint
# Do source code quality checks
check:
go vet
errcheck
goimports -d . | grep . ; test $$? -eq 1
-#golint