1
0
Fork 0
mirror of https://github.com/eosswedenorg/thalos synced 2026-06-16 04:24:56 +02:00
thalos/Makefile

23 lines
398 B
Makefile

GO=go
PROGRAM=thalos-server
PREFIX=/usr/local
BINDIR=$(PREFIX)/bin
CFGDIR=$(PREFIX)/etc
.PHONY: build test
build: build/$(PROGRAM)
build/$(PROGRAM) :
$(GO) build -o $@ cmd/thalos/main.go
install: build
install -D build/$(PROGRAM) $(DESTDIR)$(BINDIR)/$(PROGRAM)
install -m 644 -D config.example.yml $(DESTDIR)$(CFGDIR)/thalos/config.yml
test:
$(GO) test -v ./...
clean :
$(RM) -fr build