-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
13 lines (12 loc) · 959 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
GOMOD=$(shell test -f "go.work" && echo "readonly" || echo "vendor")
LDFLAGS=-s -w
tools:
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-add-files cmd/wof-add-files/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-clone-repos cmd/wof-clone-repos/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-create-repos cmd/wof-create-repo/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-create-hook cmd/wof-create-hook/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-update-hook cmd/wof-update-hook/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-list-repos cmd/wof-list-repos/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-list-hooks cmd/wof-list-hooks/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-list-updates cmd/wof-list-updates/main.go
go build -mod $(GOMOD) -ldflags="$(LDFLAGS)" -o bin/wof-rate-limits cmd/wof-rate-limits/main.go