-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (19 loc) · 728 Bytes
/
Makefile
File metadata and controls
28 lines (19 loc) · 728 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
all: vet fmt build build-windows
test:
go test ./...
vendor:
go vet ./...
vet:
go vet ./...
fmt:
go list -f '{{.Dir}}' ./... | grep -v /vendor/ | xargs -L1 gofmt -l
# test -z $$(go list -f '{{.Dir}}' ./... | grep -v /vendor/ | xargs -L1 gofmt -l)
lint:
go list ./... | grep -v /vendor/ | xargs -L1 golint -set_exit_status
build: build-windows build-osx build-linux
build-windows:
GOOS=windows GOARCH=amd64 go build -o bin/mendix-userlib-cleaner.windows ./cmd/mendix-userlib-cleaner
build-osx:
GOOS=darwin GOARCH=amd64 go build -o bin/mendix-userlib-cleaner.osx ./cmd/mendix-userlib-cleaner
build-linux:
GOOS=linux GOARCH=amd64 go build -o bin/mendix-userlib-cleaner.linux ./cmd/mendix-userlib-cleaner