23 lines
352 B
Makefile
23 lines
352 B
Makefile
|
DESTDIR ?= /usr
|
||
|
BUILDDIR ?= dist
|
||
|
CGO_ENABLED ?= 0
|
||
|
|
||
|
all: cmd
|
||
|
|
||
|
cmd ./cmd/eon/main.go:
|
||
|
mkdir -p $(BUILDDIR)/bin
|
||
|
go build -o $(BUILDDIR)/bin/eon ./cmd/eon -ldflags "-s -w"
|
||
|
|
||
|
|
||
|
|
||
|
install:
|
||
|
install -d $(DESTDIR)/bin
|
||
|
install -m 755 $(BUILDDIR)/bin/eon $(DESTDIR)/bin/burgerbackup-client
|
||
|
|
||
|
uninstall:
|
||
|
rm -f $(DESTDIR)/bin/eon
|
||
|
|
||
|
test:
|
||
|
|
||
|
clean:
|
||
|
rm -rf $(BUILDDIR)
|