1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-25 10:33:43 +02:00

create thalos-tools cli app and have the old bench command as a subcommand.

This commit is contained in:
Henrik Hautakoski 2023-06-14 11:21:54 +02:00
parent cfc6cb9e42
commit 52488277cb
6 changed files with 166 additions and 126 deletions

View file

@ -7,17 +7,17 @@ PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
CFGDIR=$(PREFIX)/etc/thalos
.PHONY: build build/$(PROGRAM) build/benchmark test
.PHONY: build build/$(PROGRAM) build/thalos-tools test
build: build/$(PROGRAM)
build/$(PROGRAM) :
$(GO) build $(GOBUILDFLAGS) -o $@ cmd/thalos/main.go
build-benchmark : build/benchmark
build-tools : build/thalos-tools
build/benchmark :
$(GO) build $(GOBUILDFLAGS) -o $@ cmd/bench/main.go
build/thalos-tools :
$(GO) build $(GOBUILDFLAGS) -o $@ cmd/tools/main.go cmd/tools/bench.go
install: build
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)