This repository has been archived on 2021-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
opensend/Makefile

14 lines
496 B
Makefile

GOBUILD ?= go build
all: main.go logging.go keyExchange.go keyCrypto.go files.go fileCrypto.go deviceDiscovery.go config.go
$(GOBUILD)
install: opensend opensend.toml
install -Dm755 opensend $(DESTDIR)/usr/bin/opensend
install -Dm644 opensend.toml $(DESTDIR)/etc/opensend.toml
install-macos: opensend opensend.toml
mkdir -p $(DESTDIR)/usr/local/bin
install -m755 opensend $(DESTDIR)/usr/local/bin/opensend
mkdir -p $(DESTDIR)/etc
install -m644 opensend.toml $(DESTDIR)/etc/opensend.toml