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.
burgerbackup/Makefile

26 lines
596 B
Makefile
Raw Permalink Normal View History

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
test:
clean:
rm -rf $(BUILDDIR)