This repository has been archived on 2024-10-20. You can view files and clone it, but cannot push or open issues or pull requests.
2024-07-13 10:30:35 +01:00
|
|
|
DESTDIR ?= /usr
|
|
|
|
BUILDDIR ?= dist
|
|
|
|
|
|
|
|
all: client server
|
|
|
|
|
|
|
|
client ./bin/client/main.go:
|
|
|
|
mkdir -p $(BUILDDIR)/bin/
|
|
|
|
go build -o $(BUILDDIR)/bin/client ./bin/client/main.go
|
|
|
|
|
|
|
|
server ./bin/server/main.go:
|
|
|
|
mkdir -p $(BUILDDIR)/bin/
|
|
|
|
go build -o $(BUILDDIR)/bin/server ./bin/server/main.go
|
|
|
|
|
|
|
|
install:
|
|
|
|
install -d $(DESTDIR)/bin
|
|
|
|
install -m 755 $(BUILDDIR)/bin/client $(DESTDIR)/bin/burgerbackup-client
|
|
|
|
install -m 755 $(BUILDDIR)/bin/server $(DESTDIR)/bin/burgerbackup-server
|
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)/bin/burgerbackup-client
|
|
|
|
rm -f $(DESTDIR)/bin/burgerbackup-server
|
|
|
|
|
2024-07-13 17:13:57 +01:00
|
|
|
test:
|
|
|
|
|
2024-07-13 10:30:35 +01:00
|
|
|
clean:
|
|
|
|
rm -rf $(BUILDDIR)
|